Coder Social home page Coder Social logo

TypeError when run main.py about dcgan HOT 5 OPEN

arisliang avatar arisliang commented on August 18, 2024
TypeError when run main.py

from dcgan.

Comments (5)

zsdonghao avatar zsdonghao commented on August 18, 2024

it run well on my side:

  • TensorLayer (both 1.4.5 and 1.8.1)
  • TensorFlow 1.4.
  • Python 3.5
  • Ubuntu 16

and I will update this repo with TensorLayer 1.8.1 soon.

from dcgan.

arisliang avatar arisliang commented on August 18, 2024

Would you be able to try on TensorFlow 1.6, python 3.6? Wonder if it's tensorflow version, mine is 1.6 and python 3.6.

from dcgan.

TIOPG avatar TIOPG commented on August 18, 2024

the code in main.py,line22
flags.DEFINE_integer("train_size", np.inf, "The size of train images [np.inf]")
change to :
flags.DEFINE_float("train_size", np.inf, "The size of train images [np.inf]")
then you can run it correct,but there is another tings I don't know you can't got the result you need.
the tutorial in README is sample but unuse...
I suggest you use another sample DCGAN,like:
https://github.com/carpedm20/DCGAN-tensorflow

from dcgan.

arisliang avatar arisliang commented on August 18, 2024

I changed the line 22, and it fixed the error, $ python main.py is run successfully. Indeed, directly running main.py looks like training, since it doesn't generate images in the end.

Trying the other repo mentioned above, there're more arguments to the usage of main.py mentioned in README.cmd there, like whether its training, or testing; specifying dataset MNIST or celebA, even your own dataset if have.

from dcgan.

TIOPG avatar TIOPG commented on August 18, 2024

from dcgan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.