CoOp
CoOp copied to clipboard
set lpclip num-shot
I want to reproduction lpclip experiment. extract feature by sh feat_extractor.sh
. I met the following questions,
- How should I set the option
num-shot
? I should use the option--num-shot
or https://github.com/KaiyangZhou/CoOp/blob/ff61507c790454bce7c5052c3ac39e60772f1f89/lpclip/feat_extractor.py#L181 orDATASET.NUM_SHOTS
https://github.com/KaiyangZhou/CoOp/blob/ff61507c790454bce7c5052c3ac39e60772f1f89/scripts/coop/main.sh#L30 - In this experiment, I used the default configuration. Theoretically,
num-shot
should be 1, but the log is recorded as -1.DATASET: ALL_AS_UNLABELED: False CIFAR_C_LEVEL: 1 CIFAR_C_TYPE: NAME: UCF101 NUM_LABELED: -1 NUM_SHOTS: -1 ROOT: /path/to/CoOp-main/data SOURCE_DOMAINS: () STL10_FOLD: -1 SUBSAMPLE_CLASSES: all TARGET_DOMAINS: () VAL_PERCENT: 0.1
So what is the true value ofnum-shot
in this experiment? - How to set up multi card training? Where is the entry?