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.

First run gives error.

See original GitHub issue

Traceback (most recent call last): File "prd.py", line 3244, in <module> do_run() File "prd.py", line 1855, in do_run for j, sample in enumerate(samples): File "/home/kyle/progrockdiffusion/guided-diffusion/guided_diffusion.py", line 867, in ddim_sample_loop_progressive img = th.randn(*shape, device=device) TypeError: randn(): argment 'size' must be tuple of ints, but found element of type float at pos 3

I may just give up on this GCE linux install for favor of windows server 2022 or continue using DD. Idk centipede diffusion was looking nice too but I had errors when running it initially.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
lowfuelcommented, Jun 23, 2022

Can you try this?

If you get an error about pandas needing a different verison of numpy, you can try:

pip install --force-reinstall numpy
1reaction
lowfuelcommented, Jun 23, 2022

Weirdly most of the time it doesn’t happen, hence its not in the main instructions. But I’ll take that into consideration!

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript - error on first run, second run is fine - Stack Overflow
When I run it once from the console I get: Uncaught TypeError: Cannot read property 'length' of undefined(…).
Read more >
Error: You must login first - run "sanity login" at Object.apiClient
I reinstalled and got the code repo from github, yarn start worked well, but doing sanity start gives this error Error: You must...
Read more >
Event ID 41 The system has rebooted without cleanly shutting ...
Describes the circumstances that cause a computer to generate Event ID 41, and provides guidance for troubleshooting the issue.
Read more >
Fix "Aw, Snap!" page crashes and other page loading errors
Fix "Aw, Snap!" page crashes and other page loading errors. If you're getting the "Aw, Snap" error or another error code instead of...
Read more >
5 Troubleshooting - Quantum Espresso
If you are running on the same machines on which the code was compiled, this is a library configuration problem. The solution is...
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