SVHNClassifier icon indicating copy to clipboard operation
SVHNClassifier copied to clipboard

How to use this project on windows

Open fkoorc opened this issue 7 years ago • 0 comments

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

fkoorc avatar Sep 25 '18 10:09 fkoorc