Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Syntax Error on Feature Extraction #37

Open
rzamarefat opened this issue Dec 25, 2021 · 1 comment
Open

Syntax Error on Feature Extraction #37

rzamarefat opened this issue Dec 25, 2021 · 1 comment

Comments

@rzamarefat
Copy link

rzamarefat commented Dec 25, 2021

Hi Thank you for this awesome implementation. I have used the following command:

python dirtorch/extract_features.py --dataset /mnt/829A20D99A20CB8B/projects/Datasets/Products_Digi/images/shoe --checkpoint /mnt/829A20D99A20CB8B/projects/deep-image-retrieval/Resnet101-TL-GeM.pt --output /mnt/829A20D99A20CB8B/projects/deep-image-retrieval/features.txt --gpu 0 --whiten Landmarks_clean --whitenp 0.25

This command is exactly based on your instructions. However I got the following error:

Traceback (most recent call last):
  File "dirtorch/extract_features.py", line 111, in <module>
    dataset = datasets.create(args.dataset)
  File "/mnt/829A20D99A20CB8B/projects/deep-image-retrieval/dirtorch/datasets/create.py", line 24, in __call__
    return eval(dataset_cmd)
  File "<string>", line 1
    /mnt/829A20D99A20CB8B/projects/Datasets/Products_Digi/images/shoe()
    ^
SyntaxError: invalid syntax
@baoloc97
Copy link

baoloc97 commented Jun 3, 2022

the dataset param need a function like ImageList, Dataset ,,vv u can check

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants