Skip to content

How to use this project on windows #19

Description

@fkoorc

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions