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

How to use this project on windows #19

Open
fkoorc opened this issue Sep 25, 2018 · 0 comments
Open

How to use this project on windows #19

fkoorc opened this issue Sep 25, 2018 · 0 comments

Comments

@fkoorc
Copy link

fkoorc commented Sep 25, 2018

I was try to train this project on windows
the original version is on linux and using python2
I change some code and running this project on windows and using python3

Hope help anyone who need to run on windows

Here is the change :
#python2->python3 #linux->windows

Every print
print '123'
print ('123')

convert_to_tfrecords.py line 64
index = int(path_to_image_file.split("/")[-1].split('.')[0]) - 1
index = int(path_to_image_file.split("\\ ")[-1].split('.')[0]) - 1

reason:
linux path using "/" but windows using "\ "

evaluator.py line 53
for _ in xrange(num_batches):
for _ in range(int(num_batches)):

reason:
evaluator.py line 12
num_batches = num_examples / batch_size
in python2 division is int type but in python3 division is float type

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