simoninithomas / catdcgan Goto Github PK
View Code? Open in Web Editor NEWA DCGAN that generate Cat pictures ๐ฑโ๐ป
Home Page: https://simoninithomas.github.io/CatDCGAN/
A DCGAN that generate Cat pictures ๐ฑโ๐ป
Home Page: https://simoninithomas.github.io/CatDCGAN/
can you tell me how to change size to 256 x 256?
NameError Traceback (most recent call last)
in ()
4 with tf.Graph().as_default():
5 losses, samples = train(epochs, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1,
----> 6 dataset.get_batches, dataset.shape, dataset.image_mode, alpha)
in train(epoch_count, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, get_batches, data_shape, data_image_mode, alpha)
81
82
---> 83 return losses, samples
NameError: name 'losses' is not defined
Hi
the train function returns two variables losses and samples. These two variables are never declared before. The article and documentation also don't explain these variables enough so I could fix it. Could you tell me how they should be declared and used?
python: can't open file 'preprocess_cat_dataset.py': [Errno 2] No such file or directory
rm: cannot remove 'cat_dataset': No such file or directory
Hi Thomas,
Great work with this, was trying myself to change the Udacity DCGAN to accept new data with no luck, was happy too see someone had cracked it :-)
But have run into a few problems:
NameError Traceback (most recent call last)
in ()
4 with tf.Graph().as_default():
5 losses, samples = train(epochs, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, dataset.get_batches,
----> 6 dataset.shape, dataset.image_mode, alpha)
in train(epoch_count, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, get_batches, data_shape, data_image_mode, alpha)
80
81
---> 82 return losses, samples
NameError: name 'losses' is not defined
UnboundLocalError Traceback (most recent call last)
in ()
4 with tf.Graph().as_default():
5 losses, samples = train(epochs, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, dataset.get_batches,
----> 6 dataset.shape, dataset.image_mode, alpha)
in train(epoch_count, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, get_batches, data_shape, data_image_mode, alpha)
35
36
---> 37 show_generator_output(sess, 4, input_z, data_shape[3], data_image_mode, image_path, True, False)
38
39 else:
UnboundLocalError: local variable 'image_path' referenced before assignment
I am running on a local machine with GPU and Tensorflow version 1.8.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.