Closed nuistji closed 1 year ago
Hi @nuistji,
Have you downloaded the tieredImageNet dataset in the ImageFolder format? (like this) The csv file is not for loading the dataset but splitting the dataset into labeled/unlabeled 80/20 sets.
The error is like this:
python pretrain.py --pls --ut --source_dataset tieredImageNet --target_dataset tieredImageNet_test --backbone resnet10 --model "byol" --tag "default" --previous_tag "default"
Using default num_workers=3
Using default optimizer for model byol: adam
Using default lr for model byol: 0.0003
Using target data tieredImageNet_test (unlabeled)
Using default image size: 224
Loading unlabeled split from /home/jifanfan/understanding/datasets/split_seed_1/tieredImageNet_test_unlabeled_20.csv
Loading labeled split from /home/jifanfan/understanding/datasets/split_seed_1/tieredImageNet_test_labeled_80.csv
Traceback (most recent call last):
File "/home/jifanfan/understanding/pretrain.py", line 296, in
I have followed the instruction [https://github.com/yaoyao-liu/tiered-imagenet-tools], and I got the tieredImageNet which is organized like this: 1.tieredImageNet 1.1 train 1.1.1 n04208210 n0420821000000030.jpg n0420821000000003.jpg 1.1.2 n04154565 1.1.3 n03970156 1.2 val 1.3 test
I think the data organization is wrong. So can you provide me the TieredImageNet dataset which can be split correctly?
Oh yes, the data organization is different from what we have.
Our tieredImageNet looks like this:
We originally used the instruction in this link, but now it seems the link is broken. Let me figure out how I can share our dataset, and provide you with the instruction.
Hi @nuistji,
I just uploaded our tieredImageNet dataset in my Dropbox. You may find it in this link. Download it and untar.
Feel free to reach out for any further questions :)
Thank you very much, your reply has help me a lot!
季繁繁 | |
---|---|
@. | ---- Replied Message ---- | From | Sungnyun @.> | | Date | 6/13/2023 15:02 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [sungnyun/understanding-cdfsl] The data loading of tieredImageNet (Issue #5) |
Hi @nuistji,
I just uploaded our tieredImageNet dataset in my Dropbox. You may find it in this link. Download it and untar.
Feel free to reach out for any further questions :)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Hi, I have evaluated the results of 'Same Domain FSL Experiments' on miniImageNet. However, I can not run the code on the tieredImageNet, I found that the 'https://github.com/sungnyun/understanding-cdfsl/blob/main/datasets/split_seed_1/ tieredImageNet_test_unlabeled_20.csv' document can not load the dataset. So, can you provide me with the tieredImageNet which can be loaded correctly?