stassius / stablehoudini Goto Github PK
View Code? Open in Web Editor NEWStable Diffusion Houdini Toolset
License: Apache License 2.0
Stable Diffusion Houdini Toolset
License: Apache License 2.0
Hi,
I have some questions.
Before filling the bug-report:
Describe the bug
Hello, i alrady do anything as i know to can to do, Houdini just cannot use the API
keep showing: Server returned: 500
i belive that i got some untend may small misstake
i already tried for a few days like force reinstall or changing some parts version of.
Desktop (please complete the following information):
`API error: GET: http://127.0.0.1:7860/sdapi/v1/options {'error': 'ValidationError', 'detail': '', 'body': '', 'errors': '1 validation error for Options\nresponse -> sd_model_checkpoint\n value is not None (type=type_error.not_none)'}
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\anyio\streams\memory.py", line 98, in receive
return self.receive_nowait()
^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\anyio\streams\memory.py", line 93, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 78, in call_next
message = await recv_stream.receive()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\anyio\streams\memory.py", line 118, in receive
raise EndOfStream
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\modules\api\api.py", line 152, in exception_handling
return await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\modules\api\api.py", line 117, in log_and_time
res: Response = await call_next(req)
^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\routing.py", line 255, in app
content = await serialize_response(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\routing.py", line 141, in serialize_response
raise ValidationError(errors, field.type_)
pydantic.error_wrappers.ValidationError: 1 validation error for Options
response -> sd_model_checkpoint
value is not None (type=type_error.not_none)
API error: GET: http://127.0.0.1:7860/sdapi/v1/options {'error': 'ValidationError', 'detail': '', 'body': '', 'errors': '1 validation error for Options\nresponse -> sd_model_checkpoint\n value is not None (type=type_error.not_none)'}
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\anyio\streams\memory.py", line 98, in receive
return self.receive_nowait()
^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\anyio\streams\memory.py", line 93, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 78, in call_next
message = await recv_stream.receive()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\anyio\streams\memory.py", line 118, in receive
raise EndOfStream
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\SD\stable-diffusion-webui\modules\api\api.py", line 152, in exception_handling
return await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\modules\api\api.py", line 117, in log_and_time
res: Response = await call_next(req)
^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\routing.py", line 255, in app
content = await serialize_response(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\stable-diffusion-webui\venv\Lib\site-packages\fastapi\routing.py", line 141, in serialize_response
raise ValidationError(errors, field.type_)
pydantic.error_wrappers.ValidationError: 1 validation error for Options
response -> sd_model_checkpoint
value is not None (type=type_error.not_none)`
I enable "Use custom URL" In SD_Switch_Model, but this now working. I enable in ARGS --api-log and --api, but not see requests to Automatic from Houdini.
If im test api via CURL - all good! I'm see requests in automatic.
Please, help me
I setup HTTP-Authorization for ATOMATIC1111 via nginx
Please, add http-header to request for this authorization:
Authorization: Basic dXNlcjpwYXNz
"dXNlcjpwYXNz" - string "user:pass" encoded in base64
Please, add two parameters to settings, User and Password, and add header to requests. Tnx!
Maybe someone will need an example of config nginx:
server {
server_name myserver.com www.myserver.com;
listen 80;
return 301 https://$host$request_uri;
}
server {
server_name myserver.com www.myserver.com;
set $root_path /home/user1/www/myserver.com;
root /home/user1/www/myserver.com;
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/myserver.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myserver.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/myserver.com/chain.pem;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:2m;
ssl_dhparam /etc/nginx/dhparam.pem;
ssl_session_tickets off;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header Host $host;
auth_basic "Administrator’s Area";
auth_basic_user_file /etc/apache2/.htpasswd;
client_max_body_size 20m;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
location / {
proxy_pass http://localhost:7860;
}
location /.well-known {
root /var/www/html;
}
}
I am getting a connection error when using a custom URL to launch the 1111 webui.
The process is stuck here:
LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.53 M params. Applying cross attention optimization (Doggettx). Model loaded in 2.1s (create model: 0.2s, apply weights to model: 0.6s, apply half(): 0.4s, move model to device: 0.9s).
API error: POST: http://127.0.0.1:7860/sdapi/v1/img2img {'error': 'AttributeError', 'detail': '', 'body': '', 'errors': "'str' object has no attribute 'enabled'"}
Traceback (most recent call last):
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 94, in receive
return self.receive_nowait()
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 78, in call_next
message = await recv_stream.receive()
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 114, in receive
raise EndOfStream
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\api\api.py", line 145, in exception_handling
return await call_next(request)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\api\api.py", line 110, in log_and_time
res: Response = await call_next(req)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\starlette\concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\api\api.py", line 374, in img2imgapi
processed = process_images(p)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\processing.py", line 503, in process_images
res = process_images_inner(p)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 39, in processing_process_images_hijack
cn_is_batch, batches, output_dir, input_file_names = get_cn_batches(p)
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 185, in get_cn_batches
units = [copy(unit) for unit in units if unit.enabled]
File "D:\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 185, in
units = [copy(unit) for unit in units if unit.enabled]
AttributeError: 'str' object has no attribute 'enabled'
Is your feature request related to a problem? Please describe.
Currently nodes have different approach for naming and grouping in TAB menu.
Grouping
Naming in TAB Menu
Naming in Node Graph
Describe the solution you'd like
What is the license on the contents of this repo? Without a specific license posted, organizations that are trying to be legit in terms of compliance have to assume that they're not allowed to do anything with it, since that is the legal default in most countries.
Hi there, I was following along in the tutorial and got stopped pretty early.
My issue came from the SD_switch_model node. the dropdown menu only displays error and has no other option, despite having multiple models available on Automatic1111, which was open at the time. The traceback goes to an unsupported type, tuple. I tried digging around through the scripts, but I'm no expert. I'm running on windows10 with Houdini 19.5.569
Traceback (most recent call last):
File "Parameter Scripted Action", line 2, in
File "Top/SD_Switch_Model, PythonModule", line 11, in RefreshModels
File "C:\PROGRA1/SIDEEF1/HOUDIN~1.569/houdini/python3.9libs\houpythonportion\Parm.py", line 83, in set
raise TypeError(
TypeError: Cannot set parameter value to unsupported type <class 'tuple'>
/controlnet/model_list
and /controlnet/module_list
are not available anymore, and I can't find the exact commit of control net repo that will work with it.
is there any other wat to fetch those data? I'm searching api docs for replacement to this, but still have no luck
also when I hardcode preprocessor name and model the control net does not seem to have any effect even if its enabled in ui
There is an error on Linux:
Traceback (most recent call last):
File "Top/SD_Switch_Model, opdef:/Top/SD_Switch_Model?OnCreated, node /obj/topnet1/SD_Switch_Model1", line 1, in
File "Top/SD_Switch_Model, PythonModule", line 8, in RefreshModels
File "/mnt/vfxserver01/Programs/houdini/19.5.403/houdini/python3.9libs/toolutils.py", line 1833, in createModuleFromSection
return _createModule(module_name,
File "/mnt/vfxserver01/Programs/houdini/19.5.403/houdini/python3.9libs/toolutils.py", line 1815, in _createModule
eval(code, module_dict)
File "SDA1111", line 2, in
File "/mnt/vfxserver01/Programs/houdini/19.5.403/python/lib/python3.9/site-packages-forced/shiboken2/files.dir/shibokensupport/feature.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'msilib'
Tried out the last commit and got everything broken
the webui spits these errors:
traceback.log
when I use webui directly it seems to be working
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.