Giter Site home page Giter Site logo

Question about finetune.py about ddpo HOT 5 CLOSED

jannerm avatar jannerm commented on August 23, 2024
Question about finetune.py

from ddpo.

Comments (5)

jannerm avatar jannerm commented on August 23, 2024

It looks like you might be looking at the RWR train step defined in training/diffusion.py. The DDPO update step is defined in training/policy_gradient.py:L63.

from ddpo.

chaojiewang94 avatar chaojiewang94 commented on August 23, 2024

Thanks, I am reproducing your work with GPU and almost finish it. I am one more question about your work.

What is the difference bettween policy-gradient verision of DDPO and GAN (maxmizing weighted likelihood)

Assume we have a fixed discriminator r(x_0), which is also treated as a reward model.
The obective function of the policy-gradient verision of DDPO and GAN should be the same, formulated as
E_x~p_\theta(x)[r(x_0)], the only difference is how to estimate or optimize this function, is that correct?

from ddpo.

chaojiewang94 avatar chaojiewang94 commented on August 23, 2024

@jannerm

from ddpo.

jannerm avatar jannerm commented on August 23, 2024

There is indeed a connection between policy gradient algorithms and GANs, though it requires a little more machinery. I recommend checking out @caseychu's great paper on Probability Functional Descent for the full story.

from ddpo.

chaojiewang94 avatar chaojiewang94 commented on August 23, 2024

@jannerm Thanks!

from ddpo.

Related Issues (11)

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.