Coder Social home page Coder Social logo

tgeorgy / mgan Goto Github PK

View Code? Open in Web Editor NEW
132.0 132.0 21.0 5.59 MB

Masking GAN - Image attribute mask generation

License: MIT License

Python 96.82% Shell 3.18%
deep-neural-networks generative-adversarial-network image-manipulation image-processing machine-learning

mgan's People

Contributors

tgeorgy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mgan's Issues

Paper about this project

Hi, tgeorgy.

I really appreciate your work.
And i wonder whether u wrote any paper about this project?

Valentina

Multiple faces?

Hi, great work!

How to apply this multiple faces? i mean the images which includes more than 1 person

regards

Data error!

Hi, thank you for sharing this code, but when I executing 'sh init_data.sh', I got following error, may you provide a solution for me?

extracting: img_align_celeba/202594.jpg
extracting: img_align_celeba/202595.jpg
extracting: img_align_celeba/202596.jpg
extracting: img_align_celeba/202597.jpg
extracting: img_align_celeba/202598.jpg
extracting: img_align_celeba/202599.jpg
Traceback (most recent call last):
File "crop_images.py", line 29, in
os.rename(ipath+fname, 'data/celeba/pos/'+fname)
OSError: [Errno 2] No such file or directory

RuntimeError: input and target shapes do not match: input [1 x 1 x 1 x 1], target [1 x 1]

Hi, tgeorgy.

I'v just started learning GAN and used your code for my first try. Unluckily I met a problem which I can't solve. At line 113 an error existed, where the code is:

loss_P2N_gan = criterion_gan(fake_neg_lbl, Variable(real_lbl)).

And the traceback is :

RuntimeError: input and target shapes do not match: input [1 x 1 x 1 x 1], target [1 x 1]

It seems that the dimensions of the scalars differ from each other. Could you tell me how to solve the problem? Or what should I learn to handle this? I ran the code using python 3.6, so I changed the 'itertools.izip' to 'zip', does this affect the programme?

Best regards,
Hondahmd

hi

How long have you train your model?

suggest

can u provide a test.py.
thanks

question about mask

Hi~ Seeing from the graph you provided , the generated image containing mask will go through discriminator , but in your code it seems you didn't do that?

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.