cs-chan/ArtGAN

No module named 'layers'? How to train this on my own Dataset?

Opened this issue · 8 comments

Also, how to run this ? Any instructions ?

issue
I am facing this issue,does any one have any solutions to this ??

Plz update repository with instructions on How to run this code. That would be very helpful.

The cudnn used to compile this code is no longer available. The error says that cudnn 7.2.1 was used but I had cudnn 7.0.5 installed. Later, I searched for cudnn 7.2.1 for CUDA 9.0. NVIDIA has deleted it from the archives. cudnn 7.3 for CUDA 9.0 stops at tf.Session(). What to do ??

You can train with your own dataset by preparing your dataset structure using the ingest*.py files as example.

We used pycharm to run the code in our own environmet, so its probably environment path problem.
Please change the path accordingly, e.g. import layers -> import nn.layers

While, your other question is related to your installed libraries versions.
Please update your libraries.

I resolved all the other issues. Had to change import layers to nn.layesr and data.dataloader
But now I get
"Default AvgPoolingOp only supports NHWC on device type CPU" while running CIFARGANAEsample.py
supports nhwc on device type cpu

and while trying to train CIFARGANAEtrick I get the following error
trick

is it due to environment used ?
I am using Ubuntu 16.04 LTS
Conda and Virtual Env.
Python 2.7
Latest versions of Neon and Aeon
Tensorflow 1.10
CUDA 9.0
CuDnn 7.3.1
what were the versions of Neon and Aeon for you ?
Thanks in advance.

Some thing I forgot to mention : I am running this on 1050ti.
I found out that CPU can only handle NHWC while the data used here is NCHW on GPU.
do you have any idea why i am getting a traceback to

2018-10-18 07:58:33.486367: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-10-18 07:58:33.624672: E tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: Default AvgPoolingOp only supports NHWC on device type CPU
[[Node: Generator/AvgPool = AvgPoolT=DT_FLOAT, data_format="NCHW", ksize=[1, 1, 3, 3], padding="SAME", strides=[1, 1, 2, 2], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
Traceback (most recent call last):
File "CIFAR64GANAEsample.py", line 86, in
gen_img, gen_img128 = sess.run([samples, samples128])
File "/home/user/Downloads/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 877, in run
run_metadata_ptr)
File "/home/user/Downloads/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1100, in _run
feed_dict_tensor, options, run_metadata)
File "/home/user/Downloads/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1272, in _do_run
run_metadata)
File "/home/user/Downloads/venv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1291, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Default AvgPoolingOp only supports NHWC on device type CPU
[[Node: Generator/AvgPool = AvgPoolT=DT_FLOAT, data_format="NCHW", ksize=[1, 1, 3, 3], padding="SAME", strides=[1, 1, 2, 2], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

hi guys,
same question here. would really appreciate some help on how to run this