cumulo-autumn / StreamDiffusion

StreamDiffusion: A Pipeline-Level Solution for Real-Time Interactive Generation
Apache License 2.0
9.45k stars 670 forks source link

RuntimeWarning: invalid value encountered in cast #124

Open kpollz opened 6 months ago

kpollz commented 6 months ago

Hi guys ! I'm running example text-to-image and I meet this error.

(py310) D:\Linh tinh\StreamDiffusion\examples>python txt2img/single.py --output output.png --prompt "A cat with a hat"
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
text_encoder\model.safetensors not found
Loading pipeline components...:  43%|██████████████████████▎                             | 3/7 [00:04<00:04,  1.24s/it]C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
Loading pipeline components...:  57%|█████████████████████████████▋                      | 4/7 [00:04<00:02,  1.06it/s]C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\transformers\models\clip\feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.
  warnings.warn(
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 7/7 [00:05<00:00,  1.32it/s]
C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\diffusers\loaders\lora.py:952: FutureWarning: `fuse_text_encoder_lora` is deprecated and will be removed in version 0.25. You are using an old version of LoRA backend. This will be deprecated in the next releases in favor of PEFT make sure to install the latest PEFT and transformers packages in the future.
  deprecate("fuse_text_encoder_lora", "0.25", LORA_DEPRECATION_MESSAGE)
C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\streamdiffusion\image_utils.py:30: RuntimeWarning: invalid value encountered in cast
  images = (images * 255).round().astype("uint8")

My GPU is GTX 1650 TI and these is some addtional information:

(py310) D:\Linh tinh\StreamDiffusion\examples>diffusers-cli env

Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.

- `diffusers` version: 0.24.0
- Platform: Windows-10-10.0.22621-SP0
- Python version: 3.10.13
- PyTorch version (GPU?): 2.1.0+cu118 (True)
- Huggingface_hub version: 0.20.3
- Transformers version: 4.37.2
- Accelerate version: 0.27.2
- xFormers version: 0.0.22.post7+cu118
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>

Please give me some help !! Tks very much !!!

smthemex commented 1 month ago

i using sdxl model , txt2img mode will get this issues, if i change vae as " madebyollin/taesdxl " ,it's work well.