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
"RuntimeError: Method 'forward' is not defined." #70
Comments
i have the same issue, tried on both python 3.8 and 3.9 |
Was also able to replicate in 3.8.0. I've seen this which could be of use: https://gitmemory.com/issue/openai/CLIP/49/791421923. Considering deep daze uses JIT directly (https://github.com/lucidrains/deep-daze/blob/main/deep_daze/clip.py#L173) it's not going to be a quick solution. |
I've tried this before but, I tried it again, and nothing worked. This sucks lol. |
should be fixed in 0.7.1 |
Now im getting this error Traceback (most recent call last): |
oops, fixed in 0.7.2! |
LMAO it worked thanks for the hard work and fast fix time! Are there any commands to change where the output files go, could you just do cd "location of where i want"? Or any other like settings that I can change to better suit my computer? If they set lower some settings and I could change those to make it render faster or is it just the imagine command Edit: just comprehended the flags on the homepage |
@NuclearSurvivor you can call now go surf the imaginations of the machine and make some NFTs or whatever :) |
bet!
and is there a way to cancel the render, or do I just have to exit out of the command line? |
@NuclearSurvivor you can control that with the |
I've tried to run the imagine command, but this is what I get every time I run the command.
(venv) C:\WINDOWS\system32>imagine "alone in the dark"
Traceback (most recent call last):
File "c:\program files\python38\lib\runpy.py", line 192, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\program files\python38\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files\Python38\Scripts\imagine.exe_main.py", line 4, in
File "c:\program files\python38\lib\site-packages\deep_daze_init.py", line 1, in
from deep_daze.deep_daze import DeepDaze, Imagine
File "c:\program files\python38\lib\site-packages\deep_daze\deep_daze.py", line 39, in
perceptor, normalize_image = load()
File "c:\program files\python38\lib\site-packages\deep_daze\clip.py", line 192, in load
model.apply(patch_device)
File "c:\program files\python38\lib\site-packages\torch\nn\modules\module.py", line 473, in apply
module.apply(fn)
File "c:\program files\python38\lib\site-packages\torch\nn\modules\module.py", line 473, in apply
module.apply(fn)
File "c:\program files\python38\lib\site-packages\torch\nn\modules\module.py", line 473, in apply
module.apply(fn)
[Previous line repeated 3 more times]
File "c:\program files\python38\lib\site-packages\torch\nn\modules\module.py", line 474, in apply
fn(self)
File "c:\program files\python38\lib\site-packages\deep_daze\clip.py", line 183, in patch_device
graphs = [module.graph] if hasattr(module, "graph") else []
File "c:\program files\python38\lib\site-packages\torch\jit_script.py", line 449, in graph
return self._c._get_method("forward").graph
RuntimeError: Method 'forward' is not defined.
I'm new to all of this so it's kind of confusing. Is there any fix for this RuntimeError: Method 'forward' is not defined. ?
The text was updated successfully, but these errors were encountered: