-
Notifications
You must be signed in to change notification settings - Fork 215
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
About torch requirement #16
Comments
Hi! The pytorch website gives a fairly detailed instruction on how to install The reason why I did not include Feel free to leave comments if you encountered any problem! |
Hi! Thanks! :) |
Hi! After you run And in the WebUI, you'll need to turn on this switch: to use your own server! |
Hi!
I'd like to ask - does "pip install -e ." install torch for cuda (or torch in general) as well?
I'm getting this after trying to use "uvicorn apis.interface:app --host 0.0.0.0 --port 8123":
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\Scripts\uvicorn.exe_main.py", line 7, in
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 760, in invoke
return _callback(*args, **kwargs)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\main.py", line 404, in main
run(
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\server.py", line 67, in serve
config.load()
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\config.py", line 474, in load
self.loaded_app = import_from_string(self.app)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\importer.py", line 24, in import_from_string
raise exc from None
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "C:\Users[username]\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "O:\AI\carefree-creator\carefree-creator.\apis\interface.py", line 3, in
import torch
ModuleNotFoundError: No module named 'torch'
It's true, that in this directory I don't have torch for cuda, or any other torch, but I thought pip would install that. :)
Greetings!
The text was updated successfully, but these errors were encountered: