yunjey / domain-transfer-network

TensorFlow Implementation of Unsupervised Cross-Domain Image Generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MemoryError solver.py load_svhn

pageedward opened this issue · comments

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

your GPU memory is small

are there any solutions to this?
is it possible to solve it with some optimizations?

I also got the same error

is there any solution to this problem?

images = np.transpose(svhn['X'], [3, 0, 1, 2])
for x in np.nditer(images, op_flags = ['readwrite']):

  `x[...] = x / 127.5 - 1`