KMnP / vpt

❄️🔥 Visual Prompt Tuning [ECCV 2022] https://arxiv.org/abs/2203.12119
Other
1k stars 91 forks source link

How to train successfully in Cifar100 #9

Closed miss-rain closed 1 year ago

miss-rain commented 2 years ago

I have tried a long time for training Cifar100, but it still does not work. please help me to run successfully, thanks very much!

1.Have downloaded the Cifar100 dataset:

1660829391508

2.Have downloaded the pretrained_model and rename

1660829299011

3.Configs file: vpt/configs/prompt/cifar100.yaml

1660829612675

Configs file: vpt/src/configs/config.py

1660829798311

4.Train model: /vpt/run.sh

1660829880467

5. Error log

W
KMnP commented 2 years ago

Hi, thanks for your interest in our work! we use CIFAR-100 from VTAB-1k suits. So I recommend to follow instructions from: https://github.com/KMnP/vpt/blob/main/VTAB_SETUP.md.

Let me know if you have other questions!

miss-rain commented 2 years ago

Thanks ! I try again, and i found in /vpt/src/data/loader.py line 32 : from .datasets.tf_dataset import TFDataset, it does not work Snipaste_2022-09-02_11-17-05

By a way , how to get json file for other datasets, like StanfordCars

Thank again !

KMnP commented 2 years ago

Hi, could you tell me more about the error? For example, if there is no error report, how did you know this line is the issue? Have you installed tfds?

As for the second question, you can find links to the JSON files here: https://github.com/KMnP/vpt#datasets-preperation

Tsingularity commented 2 years ago

@miss-rain