Giter Site home page Giter Site logo

Comments (8)

anguyen8 avatar anguyen8 commented on August 19, 2024 1

@clairehe : it was one of the tricks we tried in the early days in order to condition this GAN on features. I did not help much though (so not reported in paper).

from ppgn.

gcr avatar gcr commented on August 19, 2024

Agreed. How is it possible to train the generator model?

from ppgn.

anguyen8 avatar anguyen8 commented on August 19, 2024

@zdx3578 @gcr Hey guys, sorry for the late response.

Please find the training code of the Noiseless PPGN-h attached (not so well documented):
http://www.cs.uwyo.edu/~anguyen8/share/train_upconv_noiseless.tar.gz

You'd have to replace a few symlinks (to lmdb datasets and encoder.caffemodel) with your own datasets and encoder networks (or you can take Caffe BVLC reference as we did in the paper).

Note that it takes ~12 days to fully train this net on ImageNet on a single TitanX using Caffe.
If I were to start this from scratch, I'd do it in Tensorflow now at least to harness the multi-gpu training functionality.

Feel free to ask if you have questions.

from ppgn.

gyingqiang avatar gyingqiang commented on August 19, 2024

Hi, when i run your code:http://www.cs.uwyo.edu/~anguyen8/share/train_upconv_noiseless.tar.gz
I get a error in Caffe layer's type,Eltwise.
It must have two blobs as inputs.but yours only have one,it doesn't seem to work.Can I remove this layer?

from ppgn.

anguyen8 avatar anguyen8 commented on August 19, 2024

@gyingqiang : you could use this Caffe version of mine for the best compatibility:
http://www.cs.uwyo.edu/~anguyen8/share/caffe_upconv.tar.gz

from ppgn.

gyingqiang avatar gyingqiang commented on August 19, 2024

thank you very much

from ppgn.

Hidden-dreamz avatar Hidden-dreamz commented on August 19, 2024

What line of code do i have to run to train? and how should i prepare my image set? like file size/name/folders any help would be appreciated!

from ppgn.

chuanzihe avatar chuanzihe commented on August 19, 2024

@anguyen8 hi may i ask about your insights on discriminator design?

    # Push real images to D
    D.net.blobs['data'].data[...] = img_real
    D.net.blobs['label'].data[...] = np.zeros((batch_size,1,1,1), dtype='float32')
    D.net.blobs['feat'].data[...] = feat_real

    # Run D on the fake data
    D.net.blobs['data'].data[...] = img_fake
    D.net.blobs['label'].data[...] = np.ones((batch_size,1,1,1), dtype='float32') 
    D.net.blobs['feat'].data[...] = feat_real 

why would we want feat_real also as an input in this discriminator, instead of only feed it with real and fake images?

Thanks for any answering.

from ppgn.

Related Issues (13)

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.