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

Inference time is longer than training time #301

Open
Qusijia opened this issue Aug 24, 2023 · 1 comment
Open

Inference time is longer than training time #301

Qusijia opened this issue Aug 24, 2023 · 1 comment

Comments

@Qusijia
Copy link

Qusijia commented Aug 24, 2023

My training time is much shorter than my reasoning time. Would you like to inquire if this situation is normal? Or what advice can you give me.

Training Code:
loss = priorTrainer.diffusion_prior(text_embed=text_embed, image_embed=image_embed, text_encodings=None)
priorTrainer.optimizer.zero_grad()
loss.backward()
priorTrainer.optimizer.step()
priorTrainer.scheduler.step()

Inference code:
prior.sample_add( text_embed = text_embed)

@AIDevMonster
Copy link

sorry, I'm busy now.
2 days late, I will send you.
thx.
Paul

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

2 participants