question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'x' arg in prior trainer

See original GitHub issue

https://github.com/lucidrains/DALLE2-pytorch/blob/23bb206d2710392a99c879c37cd7ec71665ddac7/dalle2_pytorch/train.py#L259-L265

what is ‘x’ here? I tried calling like the updated way in train_diffusion_prior.py (except I do text=…, img_embed=…) https://github.com/lucidrains/DALLE2-pytorch/blob/23bb206d2710392a99c879c37cd7ec71665ddac7/train_diffusion_prior.py#L218 and I’m getting an error forward() missing 1 required positional argument: 'x'

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nousrcommented, May 15, 2022

Lol ok, yeah was surprised to see you already trying my changes on the weekend

haha yeah, I finished some assignments early last week so I had time to mess around 😃

& the code doesn’t seem to yell at me anymore after https://github.com/lucidrains/DALLE2-pytorch/commit/68e7d2f2419822676afe0b26915b1aa0e53bd248 👍 thanks!

1reaction
nousrcommented, May 15, 2022

let me know if https://github.com/lucidrains/DALLE2-pytorch/commit/68e7d2f2419822676afe0b26915b1aa0e53bd248 fixes things

ahh! okay okay, i see!

i’m at the car wash rn, will try when i get home 🤘

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trainer — PyTorch Lightning 1.8.5.post0 documentation
Passing training strategies (e.g., "ddp" ) to accelerator has been deprecated in v1.5.0 and will be removed in v1.7.0. Please use the strategy...
Read more >
Python args and kwargs: Demystified
In this step-by-step tutorial, you'll learn how to use args and kwargs in Python to add more flexibility to your functions. You'll also...
Read more >
24. Passing Arguments | Python Tutorial
The passing of parameters and arguments in Python. Explaining the difference between call by object sharing, call by value and call by name....
Read more >
2131-Anticipation — Application of 35 U.S.C. 102 - USPTO
A claimed invention may be rejected under 35 U.S.C. 102 when the invention is anticipated (or is "not novel") over a disclosure that...
Read more >
Homework 1 Solutions - Estimation, Naive Bayes, Convexity ...
is λ ∼ Gamma(α, β)) is a conjugate prior of the Exp(λ) distribution. ... As usual, let D = {x(i),y(i)} be the set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found