Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

GTSRB problems with test images path #6

Open
fabianbauermarquart opened this issue May 24, 2021 · 0 comments
Open

GTSRB problems with test images path #6

fabianbauermarquart opened this issue May 24, 2021 · 0 comments

Comments

@fabianbauermarquart
Copy link

fabianbauermarquart commented May 24, 2021

In querying/context.py, the part after Load gtsrb variables has the following problems:

  1. The test images for GTSRB (querying/data/GTSRB/Final_Test/Images) are not located in class folders, only indicating their class by their filenames. Theses should be moved by running this script:
for t in *ppm; do mkdir -p "${t%.*}"; mv "$t" "${t%.*}"; done 
  1. The test set needs an absolute path built like this, replacing
testset = datasets.ImageFolder('../data/GTSRB/Final_Test/Images', transform=transform_test)

with

testset = datasets.ImageFolder(os.path.join(curr_dir, 'data/GTSRB/Final_Test/Images'), transform=transform_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant