Open fen328199260 opened 6 years ago
Hi, thanks for pointing this out to me. "file_handling" is actually an old module which is not used in the current code. You should be able to simply comment out line 22 in utils.py to get rid of the error. Sorry for this oversight, I'll correct the code in the repo right away. If you run into any other difficulties, please let me know.
I just noticed that the metrics module is in fact still used, and uploaded the respective file. Again, if you notice any more problems, please let me know.
Thanks for your code. I have found some new problems:
By the way, which version of tensorflow are you using to run this code?
Hi, sorry for not addressing your issues... I didn't have a lot of time on my hands so I seem to have completely forgotten about it.
For the record (even though I'd assume you don't need it any more):
make_generator()
defined right above it, which in turn returns get_epoch()
which yields the tuple (images, labels)
. So no issue here.DCGAN runs with the same tensorflow version as the original implementation (Tensorflow 0.12.1) however it was tested and should be compatible with at least up to TF 1.3 if I recall correctly.
Thanks for your reply, and also apologize for that I did not describe the third point clearly. The function load returns a function address, but when you try to call the function load , you not only want to get the address but also the number of images, so I guess that output parameters of the function load should be return make_generator(hdf5_file, n_images, batch_size, res=resolution, label_name=label_name), n_images
.
[warren@cernet dcgan]$ python main.py Traceback (most recent call last): File "main.py", line 4, in
from model import DCGAN
File "/home/warren/logo-gen-master/dcgan/model.py", line 11, in
from utils import *
File "/home/warren/logo-gen-master/dcgan/utils.py", line 22, in
import file_handling as fh
ImportError: No module named file_handling
There are some files missing from your project. I find them are listed in the .gitignore, could you please upload those files? thanks.