You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've add the line in the other issue and then i run the train.py. There i get an OverflowError: cannot convert float infinity to integer in the line:
File "/home/hatai/code/tensorflow/picZip/RAISR-master/model/hashTable.py", line 29, in hashTable
return int(angle),int(strength),int(coherence)
Anyone knows how to fix it? Thanks a lot
The text was updated successfully, but these errors were encountered:
I'm facing the same error when training using python2.7. Don't know if the python version matters. I'll be back if I figure it out.
Update:
After debuging, I find the code in Line 26 in model/hashTable.py should be
strength = np.floor(strength/(1.0/Qstrenth)-1)
otherwise '1/Qstrenth' equals 0 when the type of 'Qstrenth' is int.
But new error occurs, so maybe I'm mistake about the meaning of this part. @edcrfvedcrfv
Update:
There is a repeatly used variable 't' in Line47&53 in train.py. By changing one of these, I finally finished training!
I've add the line in the other issue and then i run the train.py. There i get an OverflowError: cannot convert float infinity to integer in the line:
File "/home/hatai/code/tensorflow/picZip/RAISR-master/model/hashTable.py", line 29, in hashTable
return int(angle),int(strength),int(coherence)
Anyone knows how to fix it? Thanks a lot
The text was updated successfully, but these errors were encountered: