MemoryError solver.py load_svhn
pageedward opened this issue · comments
pageedward commented
File "/home/page/wp/domain-transfer-network/solver.py", line 41, in load_svhn
images = np.transpose(svhn['X'], [3, 0, 1, 2]) / 127.5 - 1
MemoryError
Mengmeng bai commented
your GPU memory is small
Mustafa Aldemir commented
are there any solutions to this?
is it possible to solve it with some optimizations?
Anmol Dua commented
I also got the same error
Anmol Dua commented
is there any solution to this problem?
411066282 commented
images = np.transpose(svhn['X'], [3, 0, 1, 2])
for x in np.nditer(images, op_flags = ['readwrite']):
`x[...] = x / 127.5 - 1`