CoOp
Prompt Learning for Vision-Language Models (IJCV'22, CVPR'22)
File Explorer
Download Latest Version (.zip)- __init__.py
- bpe_simple_vocab_16e6.txt.gz
- clip.py
- model.py
- simple_tokenizer.py
- caltech101.yaml
- dtd.yaml
- eurosat.yaml
- fgvc_aircraft.yaml
- food101.yaml
- imagenet.yaml
- imagenet_a.yaml
- imagenet_r.yaml
- imagenet_sketch.yaml
- imagenetv2.yaml
- oxford_flowers.yaml
- oxford_pets.yaml
- stanford_cars.yaml
- sun397.yaml
- ucf101.yaml
- vit_b16_c16_ep10_batch1.yaml
- vit_b16_c4_ep10_batch1.yaml
- vit_b16_c4_ep10_batch1_ctxv1.yaml
- vit_b16_c8_ep10_batch1.yaml
- rn101.yaml
- rn101_ep50.yaml
- rn50.yaml
- rn50_ctxv1.yaml
- rn50_ep100.yaml
- rn50_ep50.yaml
- rn50_ep50_ctxv1.yaml
- rn50_val.yaml
- vit_b16.yaml
- vit_b16_ctxv1.yaml
- vit_b16_ep100.yaml
- vit_b16_ep100_ctxv1.yaml
- vit_b16_ep50.yaml
- vit_b16_ep50_ctxv1.yaml
- vit_b32.yaml
- vit_b32_ep50.yaml
- __init__.py
- caltech101.py
- dtd.py
- eurosat.py
- fgvc_aircraft.py
- food101.py
- imagenet.py
- imagenet_a.py
- imagenet_r.py
- imagenet_sketch.py
- imagenetv2.py
- oxford_flowers.py
- oxford_pets.py
- stanford_cars.py
- sun397.py
- ucf101.py
- feat_extractor.py
- feat_extractor.sh
- linear_probe.py
- linear_probe.sh
- README.md
- base2new_test.sh
- base2new_train.sh
- README.md
- xd_test.sh
- xd_train.sh
- eval.sh
- main.sh
- README.md
- zeroshot.sh
- __init__.py
- cocoop.py
- coop.py
- imagenet_templates.py
- zsclip.py
- .gitignore
- COCOOP.md
- COOP.md
- DATASETS.md
- draw_curves.py
- interpret_prompt.py
- LICENSE
- parse_test_res.py
- README.md
- requirements.txt
- train.py
# Installation Guide
1. Get the code
git clone https://github.com/KaiyangZhou/CoOp
Downloads the entire project code from GitHub to your computer.
cd CoOp
Moves into the project folder you just downloaded.
2. Python
Easy RecommendedPrerequisites
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python <์คํํ ํ์ผ๋ช
>.py # README์์ ์ ํํ ์คํ ํ์ผ๋ช
์ ํ์ธํ์ธ์
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
// repository documentation
Was this content helpful?
(0 ratings)
