Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code for RectifiedFlow #150

Closed
arakotom opened this issue Nov 19, 2024 · 4 comments
Closed

code for RectifiedFlow #150

arakotom opened this issue Nov 19, 2024 · 4 comments

Comments

@arakotom
Copy link

Hello,

Thank you very much for this nice package.
I wanted to kindly ask if, as stated in the implemented papers section, the code for RectifiedFlow (Liu et al 2023) is provided?

Alain

@kilianFatras
Copy link
Collaborator

Hi @arakotom,

To get 1-Rectified Flow, you just need to use the I-CFM method with \sigma=0.0. If you want to use k-rectified flow, you will need to retrain k times the models between noisy samples and their generated samples counterparts.

@arakotom
Copy link
Author

Hi @kilianFatras ,

thanks for the answer. so in a nutshell, for the k-rectified flow, I need to recode myself all the boilerplates/loops about generating samples and retraining again with I-CFM.

@atong01
Copy link
Owner

atong01 commented Nov 19, 2024

Hi @arakotom,

Correct, we don't have a simple example for this. Would be great to add one. To check out how I ran it for the paper you can look here:

class RectifiedFlowLitModule(CFMLitModule):

@kilianFatras
Copy link
Collaborator

Closing as solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants