Comments (15)
Try updating your pytorch to the latest pytorch nightly. If that doesn't work you can try: --force-upcast-attention
from comfyui.
Update ComfyUI.
from comfyui.
Thanks for the great reply, I just tried updating the latest pytorch nightly and still couldn't solve the problem. Then tried --force-upcast-attention which showed that:
usage: main.py [-h] [--listen [IP]] [--port PORT] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE] [--enable-cors-header [ORIGIN]]
[--max-upload-size MAX_UPLOAD_SIZE] [--extra-model-paths-config PATH [PATH ...]] [--output-directory OUTPUT_DIRECTORY]
[--temp-directory TEMP_DIRECTORY] [--input-directory INPUT_DIRECTORY] [--auto-launch] [--disable-auto-launch] [--cuda-device DEVICE_ID]
[--cuda-malloc | --disable-cuda-malloc] [--force-fp32 | --force-fp16] [--bf16-unet | --fp16-unet | --fp8_e4m3fn-unet | --fp8_e5m2-unet]
[--fp16-vae | --fp32-vae | --bf16-vae] [--cpu-vae] [--fp8_e4m3fn-text-enc | --fp8_e5m2-text-enc | --fp16-text-enc | --fp32-text-enc]
[--directml [DIRECTML_DEVICE]] [--disable-ipex-optimize] [--preview-method [none,auto,latent2rgb,taesd]]
[--use-split-cross-attention | --use-quad-cross-attention | --use-pytorch-cross-attention] [--disable-xformers]
[--gpu-only | --highvram | --normalvram | --lowvram | --novram | --cpu] [--disable-smart-memory] [--deterministic] [--dont-print-server]
[--quick-test-for-ci] [--windows-standalone-build] [--disable-metadata] [--multi-user] [--verbose]
main.py: error: unrecognized arguments: --force-upcast-attention
It still failed.
from comfyui.
Thanks again. It's been updated. It's still the same.
/Users/weiwei/Envs/comfyui/lib/python3.10/site-packages/diffusers/models/resnet.py:328: FutureWarning: scale
is deprecated and will be removed in version 1.0.0. The scale
argument is deprecated and will be ignored. Please remove it, as passing it will raise an error in the future. scale
should directly be passed while calling the underlying pipeline component i.e., via cross_attention_kwargs
.
deprecate("scale", "1.0.0", deprecation_message)
100%|█████████████████████████████████████████████████████████████████████| 20/20 [00:28<00:00, 1.44s/it]
Requested to load AutoencoderKL
Loading 1 new model
/Users/weiwei/ComfyUI/nodes.py:1408: RuntimeWarning: invalid value encountered in cast
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
Prompt executed in 40.54 seconds
got prompt
[rgthree] Using rgthree's optimized recursive execution.
model_type EPS
Using split attention in VAE
Using split attention in VAE
Requested to load SDXLClipModel
Loading 1 new model
Requested to load SDXL
Loading 1 new model
100%|███████████████████████████████████████████████████████████████████████| 5/5 [00:21<00:00, 4.28s/it]
Requested to load AutoencoderKL
Loading 1 new model
/Users/weiwei/ComfyUI/nodes.py:1408: RuntimeWarning: invalid value encountered in cast
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
Prompt executed in 32.90 seconds
from comfyui.
I'll be backing up to this version now that I've got a normal picture. version number:b0ab31d
from comfyui.
I'll be backing up to this version now that I've got a normal picture. version number:b0ab31d
what version do you mean? I encountered the same problems, but I once ran it well. I will never ran it out again. how to keep a specified version?
from comfyui.
what version do you mean? I encountered the same problems, but I once ran it well. I will never ran it out again. how to keep a specified version?
git reset --hard b0ab31d
from comfyui.
what version do you mean? I encountered the same problems, but I once ran it well. I will never ran it out again. how to keep a specified version?
git reset --hard b0ab31d
run " git reset --hard b0ab31d" in /path/to/ComfyUI ?
from comfyui.
Just replace the version number with a hash
from comfyui.
you mean I can reset to any version of the followings?
git log --oneline -20
1900e51 (HEAD -> master, origin/master, origin/HEAD) Fix potential issue.
276f8fc Print error when node is missing.
4bc1884 Provide a better error message when attempting to execute the workflow with a missing node. (#3517)
09e069a Log the pytorch version.
11a2ad5 Fix controlnet not upcasting on models that have it enabled.
4ae1515 Slightly faster latent2rgb previews.
f37a471 Make --preview-method auto default to the fast latent2rgb previews.
0bdc2b1 Cleanup.
98f828f Remove unnecessary code.
1c4af59 Better error message if the webcam node doesn't work.
91590ad Add webcam node (#3497)
1930065 Don't automatically switch to lowvram mode on GPUs with low memory.
46daf0a Add debug options to force on and off attention upcasting.
58f8388 More proper fix for #3484.
2d41642 Fix lowvram dora issue.
ec6f16a Fix SAG.
bb4940d Only enable attention upcasting on models that actually need it.
b0ab31d Refactor attention upcasting code part 1.
2de3b69 Support saving some more modelspec types.
cf6e1ef Show message on error when loading wf from file (works on drag and drop) (#3466)
from comfyui.
this is ok ?
git reset --hard b0ab31d
HEAD is now at b0ab31d Refactor attention upcasting code part 1.
from comfyui.
Naturally, version backtracking via git constitutes a fundamental operation
from comfyui.
done。 It works well。
Thank you so much!
from comfyui.
Updating Pytorch worked for me but only for certain schedulers. Karras isn't working with any of the samplers.
from comfyui.
Me too, it is linked to denoise value, at certain values it throws the error, change the value up or down and it might work again. I wasn't too worried as my usual model and sampler were fine, but after the last update the curse has spread. I'm all updated. I get: ComfyUI/nodes.py:1408: RuntimeWarning: invalid value encountered in cast
from comfyui.
Related Issues (20)
- Access-Control-Allow-Headers does not contain Comfy-User
- The UI choice of SD3 nodes HOT 6
- Workflow is stuck for inpainting
- Execution queue error
- Stuck for inpaiting
- Error occurred when executing CLIPTextEncode in sd3_medium_incl_clips_t5xxlfp8 HOT 5
- How to solve it? Can anyone help? HOT 3
- [BUG][37a08a4] using fooocus occuer Error HOT 1
- A problem while trying to run the basic way HOT 3
- [Feature] Support for SD3 ControlNet HOT 3
- 'TextField' object has no attribute 'print_text'
- Connection errors makeing installing nodes fail + The custom node DB is currently being updated HOT 1
- [Feature]Support for realtime audio input, microphone HOT 1
- Round trip metadata
- Backend Read-Only/Restricted/Frozen Mode? HOT 2
- An error on KSampler HOT 3
- An Idea / Question💡
- SD3 checkpoint in diffusers format failing to be loaded with Load Checkpoint node
- SD3 - Mac M1 - Picture Quality (Oversaturated/Noisy)
- GUI gets progressively laggy over time. HOT 1
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 comfyui.