-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_incremental_submit.py
More file actions
1 lines (1 loc) · 1.96 KB
/
Copy pathmain_incremental_submit.py
File metadata and controls
1 lines (1 loc) · 1.96 KB
1
{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.12.11","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"%cd /kaggle/working\n!git clone https://github.com/MDC15/Clap4clip-MSC.git\n%cd Clap4clip-MSC\n!ls\n","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2025-10-28T06:19:34.026298Z","iopub.execute_input":"2025-10-28T06:19:34.026613Z","iopub.status.idle":"2025-10-28T06:19:35.342587Z","shell.execute_reply.started":"2025-10-28T06:19:34.026589Z","shell.execute_reply":"2025-10-28T06:19:35.341592Z"}},"outputs":[{"name":"stdout","text":"/kaggle/working\nCloning into 'Clap4clip-MSC'...\nremote: Enumerating objects: 259, done.\u001b[K\nremote: Counting objects: 100% (259/259), done.\u001b[K\nremote: Compressing objects: 100% (215/215), done.\u001b[K\nremote: Total 259 (delta 48), reused 247 (delta 39), pack-reused 0 (from 0)\u001b[K\nReceiving objects: 100% (259/259), 5.66 MiB | 27.61 MiB/s, done.\nResolving deltas: 100% (48/48), done.\n/kaggle/working/Clap4clip-MSC\nREADME.md clip imagenet_split main_incremental_submit.py scripts\nclassifier dataset images\t requirements.txt\t\t utils\n","output_type":"stream"}],"execution_count":15},{"cell_type":"code","source":"!python3 main_incremental_submit.py \\\n --db_name cifar100 \\\n --finetuning \\\n --finetune-epochs 2 \\\n --num-run 10 \\\n --compute-ece \\\n --compute-bwt \\\n --train_batch 32 \\\n --exemplar-selector random \\\n --root ./datasets/ \\\n --model clip_adapter \\\n --epochs 5 \\\n --arch ViT-B-16 \\\n --method er \\\n --gpus 0\n","metadata":{"trusted":true},"outputs":[],"execution_count":null},{"cell_type":"code","source":"!pip install torchmetrics","metadata":{"trusted":true},"outputs":[],"execution_count":null}]}