Comments (6)
I fix the same problem by checking this line in model.py:
data = glob(os.path.join("./data", config.dataset, "*.jpg"))
It turned out that my directory name was not compatible with config.dataset
. Try to print out the result of this line to make sure that you don't get the data
as an empty list. Then celebA can run.
from dcgan-tensorflow.
If you don't have any checkpoint it is failed to load and start training without loading a checkpoint.
I think you're cudnn version is not compatible with the version that TensorFlow uses. You'd better install different cudnn or compile TensorFlow. See tensorflow/tensorflow#1787.
from dcgan-tensorflow.
This is normal when you first training model, and “Load SUCCESS” if exist "checkpoints"
from dcgan-tensorflow.
cuda and cudnn installation must follow https://www.tensorflow.org/versions/master/get_started/os_setup.html#optional-install-cuda-gpus-on-linux, and notice version of cuda and cudnn.
from dcgan-tensorflow.
This is not a problem with Cuda. The same problem exists in my case celeb or your own images. However, when mnist works properly as possible. I am using the CPU so you can exclude the previous presumption.
[inder@dhcppc6 DCGAN-tensorflow] $ python3 main.py --dataset test --is_train True
{'batch_size': 64,
'beta1': 0.5,
'checkpoint_dir': 'checkpoint',
'dataset': 'test',
'epoch': 25,
'image_size': 108,
'is_crop': False,
'is_train': True,
'learning_rate': 0.0002,
'sample_dir': 'samples',
'train_size': inf,
'visualize': False}
[*] Reading checkpoints...
[!] Load failed...
And then nothing happens and the script terminates.
from dcgan-tensorflow.
I have this line instead, still I have load failed...
self.data = glob(os.path.join("./data", self.dataset_name, self.input_fname_pattern))
from dcgan-tensorflow.
Related Issues (20)
- input _fname_pattern"*.jpg" Synatx Error: Invalid Syntax error in line 91 in main.py
- Why the kernel size of discriminator is 4?
- raise Exception("[!] Entire dataset size is less than the configured batch_size") Exception: [!] Entire dataset size is less than the configured batch_size
- why my model is not converge after 300 epochs HOT 1
- checkpoint not found HOT 2
- What are the in/output node names for Generator and Discriminator? HOT 1
- Solved some problems in my repo/解决了一些问题
- raise Exception("Checkpoint not found in " + FLAGS.checkpoint_dir) Exception: Checkpoint not found in ./out\20200526.133337 - data - retina\checkpoint HOT 5
- Training and Test generating black squares HOT 2
- There are two bugs in the transform function in the utils.py HOT 2
- How to save discriminator network? HOT 2
- Can't create checkpoint
- cannot generate when testing
- failed to teat
- failed to test HOT 1
- NameError:name 'PIL' is not defined HOT 1
- ValueError: could not broadcast input array from shape (1,2048) into shape (98,1024) HOT 2
- TypeError: 'NoneType' object is not subscriptable
- How to generate larger images? HOT 1
- InvalidArgumentError (see above for traceback): Nan in summary histogram for: HistogramSummary_2 [[Node: HistogramSummary_2 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](HistogramSummary_2/tag, discriminator_1/Sigmoid)]] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcgan-tensorflow.