Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Welcome to C3Box, a CLIP-based continual learning toolbox <a href="https://arxiv
- `PROOF`: Learning without Forgetting for Vision-Language Models. TPAMI 2025 [[paper](https://arxiv.org/abs/2305.19270)]
- `ENGINE`: External Knowledge Injection for CLIP-Based Class-Incremental Learning. ICCV 2025 [[paper](https://arxiv.org/abs/2503.08510)]
- `BOFA`: BOFA: Bridge-Layer Orthogonal Low-Rank Fusion for CLIP-Based Class-Incremental Learning. AAAI 2026 [[paper](https://arxiv.org/abs/2511.11421)]
- `AREA`: AREA: Attribute Extraction and Aggregation for CLIP-Based Class-Incremental Learning. ICML 2026 [[paper](https://arxiv.org/abs/2605.28809)]

## ☄️ how to use

Expand Down Expand Up @@ -107,14 +108,14 @@ cd LAMDA-C3Box

These parameters include:

- **model_name**: The model's name should be selected from the 11 methods listed above, *i.e.*, `finetune`, `zs_clip`, `foster`, `memo`, `simplecil`, `l2p`, `dual`, `coda`, `ease`, `aper`, `tuna`, `rapf`, `clg_cbm`, `mg_clip`, `proof`, `engine` and `bofa`.
- **model_name**: The model's name should be selected from the 12 methods listed above, *i.e.*, `finetune`, `zs_clip`, `foster`, `memo`, `simplecil`, `l2p`, `dual`, `coda`, `ease`, `aper`, `tuna`, `rapf`, `clg_cbm`, `mg_clip`, `proof`, `engine`, `bofa` and `area`.
- **init_cls**: The number of classes in the initial incremental stage. As the configuration of CIL includes different settings with varying class numbers at the outset, our framework accommodates diverse options for defining the initial stage.
- **increment**: The number of classes in each incremental stage $i$, $i$ > 1. By default, the number of classes is equal across all incremental stages.
- **backbone_type**: The backbone network of the incremental model. It can be selected from a variety of pre-trained models available in the Timm library, such as **LAION-400M** and **OpenAI**, for
the CLIP with **ViT-B/16**.
- **seed**: The random seed is utilized for shuffling the class order. It is set to 1993 by default, following the benchmark setting iCaRL.
- **fixed_memory**: a Boolean parameter. When set to true, the model will maintain a fixed amount of memory per class. Alternatively, when set to false, the model will preserve dynamic memory allocation per class.
- **memory_size**: The total number of exemplars in the incremental learning process. If `fixed_memory` is set to false, assuming there are $K$ classes at the current stage, the model will preserve $\left[\frac{{memory-size}}{K}\right]$ exemplars for each class. **ZS-CLIP, SimpleCIL, ADAM, EASE, TUNA, CLG_CBM, MG_CLIP, ENGINE and BOFA do not require exemplars.** Therefore, parameters related to the exemplar are not utilized.
- **memory_size**: The total number of exemplars in the incremental learning process. If `fixed_memory` is set to false, assuming there are $K$ classes at the current stage, the model will preserve $\left[\frac{{memory-size}}{K}\right]$ exemplars for each class. **ZS-CLIP, SimpleCIL, ADAM, EASE, TUNA, CLG_CBM, MG_CLIP, ENGINE, BOFA and AREA do not require exemplars.** Therefore, parameters related to the exemplar are not utilized.
- **memory_per_class**: If `fixed memory` is set to true, the model will preserve a fixed number of `memory_per_class` exemplars for each class.

### 🔎 Datasets
Expand Down
33 changes: 33 additions & 0 deletions exps/area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"prefix": "-",
"backbone_type": "clip",
"model_name": "area",
"shuffle": true,
"init_cls": 50,
"increment": 10,
"device": [
"0","1","2"
],
"seed": [
1993
],
"init_lr": 0.01,
"weight_decay": 0.05,
"milestones": [7, 15],
"scheduler_gamma": 0.1,
"epochs": 20,
"dataset": "cifar224",
"beta": 1,
"batch_size": 64,
"samples_per_class": 4,
"memory_size": 0,
"K": 16,
"text_des_path": "./utils/area/descriptions/cifar100/generated_descriptions",
"occ_des_path": "./utils/area/descriptions/cifar100/generated_descriptions_occ",
"aug_des_path": "./utils/area/descriptions/cifar100/generated_descriptions_aug",
"vib_lambda": 1.0,
"precomputed_basis_path": "./utils/area/precomputed_basis/cifar100/",
"g_lambda": 0.1,
"optimizer": "sgd",
"total_class_num": 100
}
500 changes: 500 additions & 0 deletions models/area.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions utils/area/descriptions/Aircraft/classnames.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
['707-320', '727-200', '737-200', '737-300', '737-400', '737-500', '737-600', '737-700', '737-800', '737-900', '747-100', '747-200', '747-300', '747-400', '757-200', '757-300', '767-200', '767-300', '767-400', '777-200', '777-300', 'A300B4', 'A310', 'A318', 'A319', 'A320', 'A321', 'A330-200', 'A330-300', 'A340-200', 'A340-300', 'A340-500', 'A340-600', 'A380', 'ATR-42', 'ATR-72', 'An-12', 'BAE 146-200', 'BAE 146-300', 'BAE-125', 'Beechcraft 1900', 'Boeing 717', 'C-130', 'C-47', 'CRJ-200', 'CRJ-700', 'CRJ-900', 'Cessna 172', 'Cessna 208', 'Cessna 525', 'Cessna 560', 'Challenger 600', 'DC-10', 'DC-3', 'DC-6', 'DC-8', 'DC-9-30', 'DH-82', 'DHC-1', 'DHC-6', 'DHC-8-100', 'DHC-8-300', 'DR-400', 'Dornier 328', 'E-170', 'E-190', 'E-195', 'EMB-120', 'ERJ 135', 'ERJ 145', 'Embraer Legacy 600', 'Eurofighter Typhoon', 'F-16A/B', 'F/A-18', 'Falcon 2000', 'Falcon 900', 'Fokker 100', 'Fokker 50', 'Fokker 70', 'Global Express', 'Gulfstream IV', 'Gulfstream V', 'Hawk T1', 'Il-76', 'L-1011', 'MD-11', 'MD-80', 'MD-87', 'MD-90', 'Metroliner', 'Model B200', 'PA-28', 'SR-20', 'Saab 2000', 'Saab 340', 'Spitfire', 'Tornado', 'Tu-134', 'Tu-154', 'Yak-42']
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0458781.jpg The 707-320 is viewed from the side against a clear sky, featuring a white fuselage with blue and red tail markings, set on an airport tarmac with some vehicles and a fence in the foreground.
1319365.jpg The 707-320 is depicted in a side profile on a runway with a white fuselage featuring a red and gold stripe along its length, the tail exhibits a logo with red and gold accents, and the background shows an open airport field under a clear blue sky.
1042824.jpg In the image, the 707-320 is seen from the side against an airport runway background, featuring a light-colored fuselage with the "Lufthansa Cargo" logo, a distinct dark stripe along the windows, four engines under the wings, and a recognizable forward-raked tail fin.
0732667.jpg The image shows a side view of a white and dark stripe-painted Boeing 707-320 jet on the tarmac with distinct tri-gear undercarriage, bounded by an airport runway and distant city skyline, accompanied by "royal air maroc" branding.
1288661.jpg The 707-320, viewed from the side on a grassy airfield, features a white fuselage with "Nile Safaris Aviation" written in bold on the side, accented by a black logo on the tail fin, and stands against a clear sky backdrop.
1025794.jpg The 707-320 in the low-resolution image is primarily white with a distinctive gray underbelly and a visible "Condor" logo on the fuselage, viewed from a side angle against a runway backdrop, featuring four jet engines under low-slung wings and a distinctive T-tail design.
0864665.jpg The 707-320 in the image appears in a white and red color scheme with a distinct logo on the tail, photographed from a side angle on an airport tarmac with visible warehouse structures and service vehicles in the background.
0113201.jpg The 707-320 in the image is predominantly white with a sleek, streamlined body, featuring a visible Omega Air Tanker - Transport logo on the tail, seen from a side view on a tarmac with a cityscape backdrop.
0979376.jpg The 707-320 is viewed from the left side in a grassy outdoor setting, painted in a classic livery with a white upper fuselage and a dark blue lower section, featuring a distinctive red airline logo on the fuselage and tail, under a clear sky.
0869692.jpg The Boeing 707-320 is seen in a side profile at an airport, featuring a white fuselage with dark blue and red stripes, distinctive tail fin design, and set against a backdrop of green grass and a partly cloudy sky.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0314131.jpg The 727-200, seen in a side profile view against a clear blue sky, features a predominantly white fuselage with green and blue accents near the tail, and displays the distinctive three-engine arrangement typical of this model, complemented by its mid-air landing pose with extended landing gear.
1459191.jpg The 727-200 is depicted in a side view with a predominantly white fuselage accented by a light blue tail and engines, set against a clear blue sky, featuring the characteristic T-tail and triple-engine configuration distinctive to its model.
1691787.jpg A white Boeing 727-200 with blue and red accents is captured in a low-angle, airborne climb against a clear blue sky, featuring a T-tail and three rear engines.
0250399.jpg The 727-200, viewed from below against a clear sky, appears as a dark silhouette with a distinctive T-tail and swept-back wings with visible flaps extended.
1019011.jpg The 727-200 aircraft is shown in a side view on the runway, painted in yellow with red accents and DHL branding, set against an airport backdrop with another plane taking off in the background.
0063113.jpg The 727-200, viewed from the side on an airport tarmac, features a white fuselage with blue and purple stripes and a logo toward the rear, set against a backdrop of grass fields and distant trees.
0875281.jpg The 727-200 features a primarily white fuselage with a prominent blue stripe along the windows, displaying the "Sky Trek" logo with a large yellow star on its tail and forward fuselage, viewed from the side against an airport tarmac and industrial buildings in the background.
0063291.jpg The 727-200 jet, viewed from the side, features a distinctive beige and orange livery with a stylized sun emblem on the tail, set against a flat airport terrain with hazy, distant cityscape in the background.
0275123.jpg The 727-200 features a red and gray color scheme with a prominent white logo on the tail, viewed from the side on a runway, set against a backdrop of mountains and a clear blue sky, with distinctive rear-mounted engines and a T-tail.
1197395.jpg The image shows a side view of a Boeing 727-200 with a predominantly white fuselage and blue tail, featuring large text and a logo, positioned on a grassy area near a runway with a hilly landscape in the background.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1339026.jpg The 737-200 appears in a banking ascent with a white fuselage, blue underbelly, and red "Qantas" logo, featuring a dark tail with a distinctive logo against a cloudy sky background.
0826475.jpg The 737-200 appears in a grayscale image, showcasing a sleek white fuselage with a prominent dark "W" logo on the side, captured from a side view angle against an airport tarmac with distant buildings in the background.
1514479.jpg The 737-200 displays a white fuselage with a bold yellow tail and dark blue accents, viewed from a side angle in flight against a cloudy sky, with notable "SUDAN" text on the fin and landing gear deployed.
1411216.jpg The 737-200 appears in a grayscale image, showing a side view with Britannia Airways livery, featuring a distinct stripe pattern on the fuselage and tail, positioned on an airport tarmac with boarding stairs and ground crew visible.
1036858.jpg The 737-200 in the image features a white fuselage with the "AeroGal" logo in blue and red, a prominent blue tailfin with the logo, observed from a left side view on a tarmac with a clear sky and greenery in the background, displaying classic short, low-set engines characteristic of the model.
1094669.jpg The 737-200 in the image has a plain white fuselage with a classic design featuring two forward-mounted engines, parked on an asphalt runway in clear daylight, with minimal text or markings and a small aircraft in the foreground.
0789826.jpg The 737-200 is seen from a side profile on an airport tarmac, featuring a cream-colored fuselage with blue and orange tail markings, appearing slightly weathered against a backdrop of hangars and a clear sky.
1296896.jpg The 737-200 is captured in a side profile view on an airport tarmac, featuring a white fuselage with a striking blue underbelly and horizontal red and blue stripes along the sides, accented by a colorful tail logo, set against a clear sky with scattered clouds.
0147048.jpg The 737-200 features a white fuselage with a dark blue underbelly and stripe, a prominent "Braniff" logo in red on the side, viewed from a side angle at an airport terminal with the terminal building and sky in the background.
0247942.jpg The 737-200 appears in a three-quarter side view on the tarmac, featuring a white fuselage with a dark stripe along the windows, complemented by red and blue accents, and is set against a partly cloudy sky backdrop.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0074247.jpg The 737-300 in the image is painted white with a blue tail and engines, featuring Garuda Indonesia branding, captured from a side angle on an airport tarmac with other aircraft and terminal buildings in the background.
1323729.jpg The 737-300 is viewed from a side angle in flight against a light sky, featuring a white fuselage with blue accents and the "flybe" logo prominently displayed in large text, with engines and tail fins visible.
0066279.jpg The 737-300 in the image features a predominantly white fuselage with prominent blue "EBA" branding, a blue tail, and engine nacelles, viewed from the side on a runway with a backdrop of green trees and overcast sky, highlighting its classic single-aisle design and winglets.
1955376.jpg The 737-300 features a silver fuselage with prominent red branding and accents, viewed from a side angle during landing with extended landing gear over a grassy airfield and distant tree-lined background.
0062667.jpg The 737-300 in the image is painted in a white and blue livery with the Lufthansa logo, viewed from the side on an airport tarmac with a clear sky and distant terminal buildings in the background, showcasing its distinct nose shape, winglets, and two jet engines.
0248336.jpg Two Continental Airlines 737-300 airplanes, predominantly white with a navy tail and gold globe logo, are parked side by side on an airport tarmac, viewed from a high angle, with jet bridges and ground equipment in the vicinity.
1062304.jpg The 737-300 has a distinctive red nose and white fuselage with a portrait on the tail, viewed from the front-left angle on a tarmac with a grassy field and trees in the background.
1730435.jpg The 737-300 displays a white fuselage with a blue and yellow stripe livery, viewed from a side angle on an airport tarmac, featuring a prominent "Ukraine International" logo and grassy fields in the background.
2227920.jpg The 737-300 is viewed from the front on a tarmac, painted white with a gray underside and red and blue accents on the tail, featuring winglets at the tips and accompanied by airport infrastructure and another aircraft in the background.
2248581.jpg The 737-300 is depicted in a side view with a white fuselage featuring colorful tail art of tropical imagery and the "Cayman Airways" logo, against a clear sky backdrop, showing the aircraft in flight with extended landing gear.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
0242845.jpg The 737-400 in the image features a predominantly white fuselage with a colorful tail logo, captured in a side view while taking off amidst lush greenery and trees in the background, with visible main landing gear extended.
1368847.jpg The 737-400 in the image is painted white with a green tail displaying a stylized bird logo, seen in a side view against a clear blue sky, featuring distinctive winglets and landing gear deployed.
1846193.jpg A Qantas 737-400 with a white body and prominent red tail featuring a kangaroo logo is viewed from the side on an airport tarmac, with its engines, wings, and landing gear clearly visible against a backdrop of distant trees and hills.
1503757.jpg The 737-400 features a white fuselage with a deep blue tail adorned with red circle patterns, viewed from the side against a clear blue sky as it flies above the runway, with extended landing gear and clear airline branding visible.
2117477.jpg A white 737-400 with red and green markings and logo is captured in a side view as it ascends, set against a clear blue sky, with visible landing gear retracting and smooth metal texture reflecting sunlight.
0302648.jpg The 737-400 in the image is painted predominantly white with maroon accents and celebratory text near the window line, seen from the side on an airport tarmac with a backdrop of trees and industrial buildings.
1702255.jpg The image shows a white 737-400 with a blue tail and red engine nacelles, captured in a side view as it lands on a runway surrounded by grassy fields under a partly cloudy sky.
1398863.jpg A white 737-400 with a red and blue stripe and the Malaysia Airlines logo is captured in flight from a side view against a clear blue sky, displaying its landing gear and winglets.
0127627.jpg The 737-400, seen from a side profile in mid-flight against a partly cloudy sky, features a green and white livery with a distinct shamrock emblem on the tailfin and smooth fuselage.
2120181.jpg This low-resolution image shows a vividly colored 737-400 with a bright blue fuselage, a prominent bird-themed design on the nose and tail, mid-flight against a clear blue sky, illustrating its side profile and visible winglets.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1543563.jpg In the image, a 737-500 aircraft with a white fuselage and bright lime green tail is captured in a side profile as it ascends against a backdrop of lush greenery and a clear sky, displaying the recognizable airBaltic logo and a partially visible undercarriage.
1216716.jpg The 737-500 aircraft is white with vivid red and green tail and engine markings, captured in-flight with landing gear extended against a cloudy sky background, prominently displaying an airline logo on its body.
0114439.jpg The 737-500 aircraft is painted in a white and dark blue livery with "Lufthansa" prominently displayed on the fuselage, viewed from the side on an airport tarmac with terminal buildings and another similarly branded aircraft in the background.
1033079.jpg The 737-500 appears in a side profile with a white fuselage featuring colorful stripes and logos, set against a clear blue sky with its landing gear extended and engines visible.
0074245.jpg A white 737-500 is viewed from the side on an airport tarmac, featuring a blue tail with a bird-like logo and the word "ANGEL" in red on the fuselage, set against a background of grassy areas and airport infrastructure.
1384649.jpg The 737-500 in the image features a white fuselage with blue and red accents, seen from a side view in-flight against a backdrop of hills and scattered buildings, with prominent landing gears extended and a text logo towards the front.
1405447.jpg The 737-500 in the image, viewed from the left side as it approaches landing, features a white fuselage with a red tail and winglets displaying a logo, red engine casings, and a subtle visible contrast against a blurred airport and rural backdrop.
0130599.jpg The image shows a white Boeing 737-500 with a blue and red logo on the fuselage, viewed from the side on an airport tarmac, with its engines and landing gear clearly visible against a background of terminal buildings and parked aircraft.
1258418.jpg The 737-500, viewed from the side at ground level, features a predominantly white and vibrant orange color scheme with "smartWings.com" branding, set against a clear sky and airport tarmac background with distinct large engine nacelles and wingtips.
1749186.jpg The low-resolution image shows a white 737-500 viewed from a frontal angle below, highlighting its landing gear extended against a clear blue sky, with distinctive engine intakes and the classic fuselage shape clearly visible.
Loading