[X] I have visited the FAQ page right now and my issue is not present there
Is there an existing issue for this?
[X] I have searched the existing issues and checked the recent builds/commits of both this extension and the webui
Are you using the latest version of the Deforum extension?
[X] I have Deforum updated to the lastest version and I still have the issue.
What happened?
I tried running deforum using the API endpoints with no webui. However, when I send a job to deforum_api/batches endpoint, I get the following exception:
Traceback (most recent call last):
File "/home/ubuntu/app/extensions/deforum/scripts/deforum_api.py", line 81, in run_deforum_batch
run_deforum(*run_deforum_args)
File "/home/ubuntu/app/extensions/deforum/scripts/deforum_helpers/run_deforum.py", line 82, in run_deforum
from .render import render_animation
File "/home/ubuntu/app/extensions/deforum/scripts/deforum_helpers/render.py", line 12, in <module>
from .noise import add_noise
File "/home/ubuntu/app/extensions/deforum/scripts/deforum_helpers/noise.py", line 6, in <module>
from .animation import sample_to_cv2
File "/home/ubuntu/app/extensions/deforum/scripts/deforum_helpers/animation.py", line 3, in <module>
import py3d_tools as p3d # this is actually a file in our /src folder!
ModuleNotFoundError: No module named 'py3d_tools'
This exception only occurs when I start the A1111 launcher with--nowebui parameter.
Start any deforum job by sending a POST request to deforum_api/batches endpoint.
What should have happened/how would you fix it?
deforum_sys_extend() function is only called for the WebUI process and it is not called for the Deforum API processes. Hence, API processes cannot locate py3d_tools modules.
This function should also have been called during FastAPI initialization.
Torch version
2.0.1+cu117
On which platform are you launching the webui with the extension?
Have you read the latest version of the FAQ?
Is there an existing issue for this?
Are you using the latest version of the Deforum extension?
What happened?
I tried running deforum using the API endpoints with no webui. However, when I send a job to
deforum_api/batches
endpoint, I get the following exception:This exception only occurs when I start the A1111 launcher with
--nowebui
parameter.Steps to reproduce the problem
--nowebui
parameter:deforum_api/batches
endpoint.What should have happened/how would you fix it?
deforum_sys_extend() function is only called for the WebUI process and it is not called for the Deforum API processes. Hence, API processes cannot locate
py3d_tools
modules.This function should also have been called during FastAPI initialization.
Torch version
2.0.1+cu117
On which platform are you launching the webui with the extension?
Local PC setup (Linux), Cloud server (Linux)
Deforum settings
https://gist.github.com/nberktumer/d169dae0f0dc538a73f22e74a1f0c19e
Webui core settings
https://gist.github.com/nberktumer/5660a9bcb5064ca6dd27d90b1421cf7a
Console logs
Additional information
No response