self-ensemble-visual-domain-adapt icon indicating copy to clipboard operation
self-ensemble-visual-domain-adapt copied to clipboard

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

Open benathi opened this issue 6 years ago • 8 comments

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?

benathi avatar Apr 25 '18 04:04 benathi

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>

Britefury avatar Apr 25 '18 08:04 Britefury

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!!

benathi avatar Apr 25 '18 16:04 benathi

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.

Britefury avatar Apr 27 '18 15:04 Britefury

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

benathi avatar Apr 28 '18 01:04 benathi

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! :)

benathi avatar Apr 28 '18 19:04 benathi

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

naoto0804 avatar May 01 '18 16:05 naoto0804

Here:

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

Britefury avatar May 01 '18 22:05 Britefury

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

Britefury avatar Aug 26 '19 09:08 Britefury