You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if one intorduction and one code may be something wrong.
At first, japanese clip's ReadMe is not correct.
The exiting example is following.
python3 clip_benchmark/cli.py \
--model_type "ja_clip" \ # flag to use japanese-clip
--pretrained "rinna/japanese-cloob-vit-b-16" \ # now, we have `rinna/japanese-cloob-vit-b-16` or `rinna/japanese-clip-vit-b-16`.
--language "jp" \
--task "zeroshot_classification" \
--dataset "imagenet1k"
--dataset_root {ROOT_PATH}
However, it lacks eval/build and "\".
Maybe, the following is correct. In addition to this, "#" or unnecessary spaces prevent executing this shell script.
Please check it.
Thanks @jackee777! you are right, will update the example. On the other hand not sure to see where model.eval() is called in load_clip. I checked model.training after load_clip, and it is still True, so mode.eval() would still be necessary (it is needed for models using dropout and/or batchnorm).
@mehdidc
Thank you for your response. You are correct, and I'm sorry for misunderstanding the 2nd question.
I may have seen load_clip in another version of this repository. The current version works successfully.
I wonder if one intorduction and one code may be something wrong.
At first, japanese clip's ReadMe is not correct.
The exiting example is following.
However, it lacks eval/build and "\".
Maybe, the following is correct. In addition to this, "#" or unnecessary spaces prevent executing this shell script.
Please check it.
Secondly, model.eval() in line. 181 of cli.py seems like unnecesary.
model.eval() has alerady been executed in load_clip() function.
I hope you to review them.
The text was updated successfully, but these errors were encountered: