Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about white box setting code #1

Closed
downdric opened this issue Aug 14, 2024 · 1 comment
Closed

about white box setting code #1

downdric opened this issue Aug 14, 2024 · 1 comment

Comments

@downdric
Copy link

This work on DG is very impressive! If possible, could you share the code with the white box setting?

@AshishAsokan
Copy link
Collaborator

Hi @downdric, thanks for your interest in our work!

The code for the white box setting is included in this codebase. You can run the white box setting on CLIP ViT-B/16 using the following command:

CUDA_VISIBLE_DEVICES=$gpu_id python train_all.py $name \
    --clip_backbone $backbone \
    --swad_fix \
    --lmd $lmd \
    --seed $seed \
    --model_save 100 \
    --data_dir $path \
    --backbone "clip_vit-b16" \
    --algorithm DFC_CLIP_INIT \
    --dataset $dataset \
    --swad True

The above command uses the arguments from the running scripts in the scripts folder. The key changes here compared to the running scripts in the codebase are the --backbone and --algorithm arguments, which refer to the CLIP ViT-B/16 backbone and the algorithm for training using this backbone, respectively. Please try this out and let us know if you face any issues.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants