Closed HripsimeS closed 2 years ago
Which command did you run to evaluate @HripsimeS ?
Confusion Matrix python src/scripts/visualize_confusion_matrix.py --test_images_dir data/TshinghuaDogs/val/ --reference_images_dir data/TshinghuaDogs/train -c src/checkpoints/proxynca-resnet50.pth
T-SNE python src/scripts/visualize_tsne.py --images_dir data/TshinghuaDogs/val/ -c src/checkpoints/proxynca-resnet50.pth
Similarity Matrix python src/scripts/visualize_similarity.py --images_dir data/TshinghuaDogs/val/ -c src/checkpoints/proxynca-resnet50.pth
Can you also show the structure of your directory ? Also paste some output of these command
import os
print(os.listdir("data/TshinghuaDogs/train"))
print(os.listdir("data/TshinghuaDogs/val"))
We want to be sure that the paths data/TshinghuaDogs/train
and data/TshinghuaDogs/val
can be seen in current PYTHONPATH
@QuocThangNguyen indeed you were right print(os.listdir("data/TshinghuaDogs/val") was not really working, but when I put the whole path "C:/Fine-Grained/data/TsinghuaDogs/val/" it worked okay. So thanks a lot, I will close this issue.
Glad that helped
@QuocThangNguyen Hello. I tried training and inference, they work fine (just training takes too long). Then I wanted to evaluate a trained model to see confusion matrix, T-SNE and similarity matrix, but I receive errors
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'data/TshinghuaDogs/train' FileNotFoundError: [WinError 3] The system cannot find the path specified: 'data/TshinghuaDogs/val'
I followed the advice how to structure dataset for train and val folders, so I don't know why it can't find directories. Can you please help to figure out what is the issue and let me know if you need additional information from my side!