Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CHENGY12 committed Jan 24, 2023
1 parent d10c8b1 commit c8d1a35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion plot-coop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Please follow the instructions [DATASETS.md](https://github.com/KaiyangZhou/CoOp


The running scripts are in `scripts/`. `cd ./scripts` and change the `your_data_path` and `your_work_path` in `scripts/main.sh`

Then, you can run the commands `bash main.sh DATASET N` under `CoOp/scripts/`.

`DATASET` takes as input a dataset name, like `caltech101`.
Expand Down
2 changes: 1 addition & 1 deletion plot-coop/configs/trainers/PLOT/rn50.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DATALOADER:
TRAIN_X:
BATCH_SIZE: 128 #32 for small dataset such as FGVC_air
BATCH_SIZE: 128
TEST:
BATCH_SIZE: 200
NUM_WORKERS: 8
Expand Down
3 changes: 3 additions & 0 deletions plot-coop/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def setup_cfg(args):
if cfg.DATASET.NAME== "ImageNet":
cfg.OPTIM.MAX_EPOCH=50

if cfg.DATASET.NAME in ['OxfordFlowers','FGVCAircraft','StanfordCars']:
cfg.DATALOADER.TRAIN_X.BATCH_SIZE=32 #32 for small dataset such as Car,Air,Flowers

cfg.freeze()


Expand Down

0 comments on commit c8d1a35

Please sign in to comment.