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

Error for --exp=syndigits_svhn and --exp=synsigns_gtsrb #3

Open
benathi opened this issue Apr 25, 2018 · 8 comments
Open

Error for --exp=syndigits_svhn and --exp=synsigns_gtsrb #3

benathi opened this issue Apr 25, 2018 · 8 comments

Comments

@benathi
Copy link

benathi commented Apr 25, 2018

I got the following errors for the two experiments above.

".../domain_datasets.py", line 24, in get_config

raise ValueError('Could not find configuration file domain_datasets.cfg')

These are the two lines from batch_search_exp.sh that I tried running.

python experiment_domainadapt_meanteacher.py --exp=syndigits_svhn --log_file=results_exp_ctaa/log_syndigits_svhn_ctaa_run${2}.txt --standardise_samples --batch_size=128 --cls_balance=0.0 --num_epochs=300

python experiment_domainadapt_meanteacher.py --exp=synsigns_gtsrb --log_file=results_exp_ctaa/log_synsigns_gtsrb_ctaa_run${2}.txt --standardise_samples --batch_size=128 --cls_balance=0.0 --num_epochs=300

Could you help check why this might be the case?

@Britefury
Copy link
Owner

Woops....
Forgot to put that in the README!

You will need to create a file called 'domain_datasets.cfg'.

In it put:

[paths]
syndigits=<syndigits path>
synsigns=<synsigns path>
gtsrb=<gtsrb path>

@benathi
Copy link
Author

benathi commented Apr 25, 2018

Thank you for your response!!

I looked into the code and believe that prepare_gtsrb.py and prepare_synsigns.py should be run to prepare as well (and I tried running them). By the way, is there prepare_syndigits.py to prep for syn_digits dataset?

I created domain_datasets.cfg file with the following content.

[paths]
syn_digits=data/syn_digits
syn_signs=data/syn_signs
gtsrb=data/gtsrb

Then I ran python prepare_synsigns.py. I got an error saying:

Labels path data/syn_signs/synthetic_data/train_labelling.txt does not exist

For prepare_gtsrb.py, I got

Creating data/gtsrb/gtsrb.h5...                                                                                                           
ERROR!!! Training images path data/gtsrb/Final_Training/Images does not exist                                                             
Closing remaining open files:data/gtsrb/gtsrb.h5...done 

As of now, when I run the two experiments mentioned previously I got the following errors. (data not found)

RuntimeError: Could not load Syn-Digits dataset  
RuntimeError: Could not load Syn-Signs from data/syn_signs/syn_signs.h5; please run 'prepare_synsigns.py' to create it

Could you help update the README.md to help with instructions on how to get these datasets prepared? Thank you so much!!

@Britefury
Copy link
Owner

Britefury commented Apr 27, 2018

I've updated the README to include the relevant info. I have also added a description of the directory layout that the software will expect. I hope this helps. Please let me know if not.

Oh, please delete data/gtsrb/gtsrb.h5 as it will likely be incomplete.

@benathi
Copy link
Author

benathi commented Apr 28, 2018

Thank you so much -- I will follow your instructions!

@benathi
Copy link
Author

benathi commented Apr 28, 2018

Thank you very much for the instructions. They're very helpful!

I was wondering it would be possible to get the actual dataset on synsigns from you as well since there's no public link. Please let me know! :)

@naoto0804
Copy link

naoto0804 commented May 1, 2018

Congratulations for your ICLR2018 acceptance! I also would really appreciate it if you could share the synsigns dataset with me.

@Britefury
Copy link
Owner

Britefury commented May 1, 2018

Here:

https://drive.google.com/file/d/0B-N5tVpsXW5mb1l0SjJhMFJZVk0/view?usp=sharing

@Britefury
Copy link
Owner

I have now added a download link to the README file.

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

3 participants