Comments (7)
Thank you @John-WL, that works well enough for now. :)
from sd-webui-comfyui.
One way to fix this is to execute this command before launching the webui:
ulimit -n 3000
It will increase the max amount of opened file descriptors to 3000. It's not the right way to fix the issue, but you can do this while we work on a better fix.
I think 3000 should be fine, but if it still doesn't work, you can try increasing the number even further.
from sd-webui-comfyui.
Please share the complete stack trace, not just a small section. Does the exact message repeats itself or it is a little bit different every time? For example are the numbers in </torch_1545_703365300_501>
changing?
It seems related to the way the model is shared between processes, which we are working on rewriting ATM.
I found a way to make it so that we serialize unet call parameters and return value instead of the entire state dict, although it seems to be elaborate to implement AFAICT so I don't have an ETA.
from sd-webui-comfyui.
Does this help if you merge it locally?
https://github.com/ModelSurge/sd-webui-comfyui/pull/51/files
IIUC a quick fix might be to share one key at a time and garbage collect the shared memory after making a copy in the comfyui process. It shouldn't take more memory than we are already taking.
from sd-webui-comfyui.
Also we should consider not sharing the model if the webuiCheckpointLoader node isn't used.
To achieve this we can start the consumer thread and stop it when a node is added or removed from the node editor, or something like that.
from sd-webui-comfyui.
Please share the complete stack trace, not just a small section. Does the exact message repeats itself or it is a little bit different every time? For example are the numbers in
</torch_1545_703365300_501>
changing?It seems related to the way the model is shared between processes, which we are working on rewriting ATM.
I found a way to make it so that we serialize unet call parameters and return value instead of the entire state dict, although it seems to be elaborate to implement AFAICT so I don't have an ETA.
I tested, I have the exact same error with wsl
Creating model from config: /home/plads/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: xformers... done.
Textual inversion embeddings loaded(0):
Model loaded in 5.7s (load weights from disk: 1.0s, create model: 0.5s, apply weights to model: 2.3s, apply half(): 0.7s, move model to device: 0.6s, scripts callbacks: 0.5s, calculate empty prompt: 0.1s).
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/queues.py", line 244, in _feed
File "/usr/lib/python3.10/multiprocessing/reduction.py", line 51, in dumps
File "/home/plads/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/multiprocessing/reductions.py", line 369, in reduce_storage
RuntimeError: unable to open shared memory object </torch_903_56158203_503> in read-write mode: Too many open files (24)
from sd-webui-comfyui.
@Ainaemaet as of the latest version of the extension, you shouldn't need the workaround anymore. Please let us know if anything does not work as intended.
from sd-webui-comfyui.
Related Issues (20)
- "Send To" button does not work if no generation was ever launched HOT 2
- Image generation stuck at 95% when ComfyUI extension is enabled HOT 5
- I get this error HOT 3
- BAG, [WinError 183] File exists: 'ipc_payload_args_webui' HOT 4
- ModuleNotFoundError HOT 4
- ModuleNotFoundError:No module named 'folder_paths' HOT 8
- can't update neither patch HOT 12
- How do I make this plug-in through webui api, just like the controlnet plug-in? HOT 6
- No module named 'app.user_manager' HOT 4
- AttributeError: module 'comfy.sd' has no attribute 'ModelPatcher' HOT 11
- comfiui blank screen error HOT 6
- i have amd but it uses cuda HOT 14
- How to use ComfyUI in Automatic 1111 (in Colab) HOT 7
- Unable to remotely access the 8189 port page.
- [UI Compatibility] ComfyUI elements use too much dead space HOT 1
- 127.0.0.1 拒绝了我们的连接请求
- Re-running Comfy Ui error HOT 2
- Iframes not loading but https://host-address/sd-webui-comfyui/comfyui/ is HOT 1
- ComfyUI manager - Unsecure Feature is disabled HOT 2
- save workflow? how :( HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-webui-comfyui.