CoOp icon indicating copy to clipboard operation
CoOp copied to clipboard

set lpclip num-shot

Open laohuijiadezhu opened this issue 1 year ago • 0 comments

I want to reproduction lpclip experiment. extract feature by sh feat_extractor.sh. I met the following questions,

  1. 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 or DATASET.NUM_SHOTS https://github.com/KaiyangZhou/CoOp/blob/ff61507c790454bce7c5052c3ac39e60772f1f89/scripts/coop/main.sh#L30
  2. 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 of num-shot in this experiment?
  3. How to set up multi card training? Where is the entry?

laohuijiadezhu avatar Mar 21 '23 07:03 laohuijiadezhu