Code Monkey home page Code Monkey logo

Comments (3)

zcemycl avatar zcemycl commented on May 30, 2024

@chang7ing
Have done that code quite a while ago, so it may not be true.
The model is customized before, it uses externally defined weights, instead of weights living inside the object. So if you want to use the model, please use functions (at the bottom of the scripts) like Generator and Discriminator by passing inputs, parameters (paramGen paramDis for cnn/fnn layers) and states (stGen stDis for batch norm).
You can save the model by saving the parameters and states. There are functions (like save) that can save them into mat files. Afterwards, you can load them, and pass them back to the functions (at the bottom of all scripts).

from matlab-gan.

woshixiaohanpi avatar woshixiaohanpi commented on May 30, 2024

您好!我在做毕业设计,您的代码我想认真学习一下,但是好多地方我还是看不懂,请问有没有这个代码的详细解析呢?我想看一下,谢谢您!

from matlab-gan.

zcemycl avatar zcemycl commented on May 30, 2024

@woshixiaohanpi Suggestions:

  1. implement gan with matlab example (not mine). They have some in their website.
  2. understand the custom training loop.
  3. read my gan script, and compare it with matlab one.
  4. read keras/pytorch implementation. Understand how it differs from matlab implementation.
  5. follow the sequence of when each gan model is created, don't skip. I created gan first, then dcgan, then cgan, then infogan, then pix2pix, etc. If you skip, you might not understand my syntax. In later model, like cyclegan or pix2pix, I use exec a lot to reduce repetitive code.

These scripts are created within 1 month, I don't do a lot of comments, and not intended to since I have no more matlab :).

from matlab-gan.

Related Issues (15)

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.