Giter Club home page Giter Club logo

Comments (15)

comfyanonymous avatar comfyanonymous commented on June 23, 2024 1

Try updating your pytorch to the latest pytorch nightly. If that doesn't work you can try: --force-upcast-attention

from comfyui.

comfyanonymous avatar comfyanonymous commented on June 23, 2024 1

Update ComfyUI.

from comfyui.

yiwangsimple avatar yiwangsimple commented on June 23, 2024

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.

yiwangsimple avatar yiwangsimple commented on June 23, 2024

Thanks again. It's been updated. It's still the same.
截屏2024-05-17 13 28 54
/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.

yiwangsimple avatar yiwangsimple commented on June 23, 2024

I'll be backing up to this version now that I've got a normal picture. version number:b0ab31d

from comfyui.

athronix avatar athronix commented on June 23, 2024

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.

yiwangsimple avatar yiwangsimple commented on June 23, 2024

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.

athronix avatar athronix commented on June 23, 2024

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.

yiwangsimple avatar yiwangsimple commented on June 23, 2024

Just replace the version number with a hash

from comfyui.

athronix avatar athronix commented on June 23, 2024

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.

athronix avatar athronix commented on June 23, 2024

this is ok ?

git reset --hard b0ab31d
HEAD is now at b0ab31d Refactor attention upcasting code part 1.

from comfyui.

yiwangsimple avatar yiwangsimple commented on June 23, 2024

Naturally, version backtracking via git constitutes a fundamental operation

from comfyui.

athronix avatar athronix commented on June 23, 2024

done。 It works well。

Thank you so much!

from comfyui.

MattaTatTat76 avatar MattaTatTat76 commented on June 23, 2024

Updating Pytorch worked for me but only for certain schedulers. Karras isn't working with any of the samplers.

from comfyui.

treeshark12 avatar treeshark12 commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.