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

train only with VOC #31

Open
Ann-Rachel opened this issue Sep 7, 2019 · 2 comments
Open

train only with VOC #31

Ann-Rachel opened this issue Sep 7, 2019 · 2 comments

Comments

@Ann-Rachel
Copy link

Ann-Rachel commented Sep 7, 2019

Hey mvoelk,

your work is great!
I try to train DSOD512 with VOC2012.

from data_voc import GTUtility
gt_util_voc = GTUtility('data/VOC2012/')
gt_util_train, gt_util_val = GTUtility.split(gt_util_voc)
.
.
.
with open(checkdir+'/source.py','wb') as f:
source = ''.join(['# In[%i]\n%s\n\n' % (i, In[i]) for i in range(len(In))])
f.write(source.encode())

and get the Error, because 'In' is unknown.
I don't think that the problem is splitting. Before I change the code I got the same issue. Is In the train List?

Could you help me please?

@mvoelk
Copy link
Owner

mvoelk commented Sep 9, 2019

with open(checkdir+'/source.py','wb') as f:
    source = ''.join(['# In[%i]\n%s\n\n' % (i, In[i]) for i in range(len(In))])
    f.write(source.encode())

saves the already executed cells of the Jupyter Notebook in source.py. This makes it easier to find out under which conditions (hyperparams, etc.) the training was done.

If you run the code as Python file, you can simply remove those lines.

@Ann-Rachel
Copy link
Author

yes, i use python, i uncommented this lines yesterday.
and it works.

thanks

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

2 participants