NokiMo
Furkan Gözükara
Furkan Gözükara

patreon


Stable Cascade 1 Click Installer & Advanced Gradio APP For Windows, RunPod, Linux, Massed Compute & Kaggle

Patreon exclusive posts index

Join discord and tell me your discord username to get a special rank : SECourses Discord

16 May 2024 Update:

7 May 2024 Update:

5 May 2024 Update:

14 February 2024 Update V2:

14 February 2024 Update:

Features

Requirements:


Comments

Once more the Maestro saves me with another installer! I was not sure if I would ever try Cascade, but I just finished your tutorial video and now I have no excuse. :D

reaper557

I shortened the prompt and it seemed to help but I'm still getting this error: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument other in method wrapper_CUDA__equal)

David Allen Neron

I managed to get one image to generate but now I'm getting this: Token indices sequence length is longer than the specified maximum sequence length for this model (127 > 77). Running this sequence through the model will result in indexing errors The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['leaf or a water droplet, that morphs into a light bulb or flame (( fire )), representing ideas and innovation springing from natural sources. the overall design should convey a harmonious blend of nature, luxury, and forward - thinking.'] 100%|██████████████████████████████████████████████████████████████████████████████████| 30/30 [00:12<00:00, 2.40it/s] Token indices sequence length is longer than the specified maximum sequence length for this model (127 > 77). Running this sequence through the model will result in indexing errors Traceback (most recent call last): File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\gradio\queueing.py", line 495, in call_prediction output = await route_utils.call_process_api( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\gradio\route_utils.py", line 231, in call_process_api output = await app.get_blocks().process_api( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\gradio\blocks.py", line 1594, in process_api result = await self.call_function( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\gradio\blocks.py", line 1176, in call_function prediction = await anyio.to_thread.run_sync( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2144, in run_sync_in_worker_thread return await future File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 851, in run result = context.run(func, *args) File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\gradio\utils.py", line 689, in wrapper response = f(*args, **kwargs) File "D:\AI Art Generator - STABLE CASCADE\StableCascade\app.py", line 340, in generate decoder_output = decoder_pipeline( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\venv\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "D:\AI Art Generator - STABLE CASCADE\StableCascade\pipelines\pipeline_stable_cascade.py", line 398, in __call__ _, prompt_embeds_pooled, _, negative_prompt_embeds_pooled = self.encode_prompt( File "D:\AI Art Generator - STABLE CASCADE\StableCascade\pipelines\pipeline_stable_cascade.py", line 150, in encode_prompt if untruncated_ids.shape[-1] >= text_input_ids.shape[-1] and not torch.equal( RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument other in method wrapper_CUDA__equal) *** I'm not sure what's happening. Any help would be super appreciated.

David Allen Neron

ye you are right. i am gonna fix it hopefully. please remind me if i forget

Furkan Gözükara

I'm not sure what happened, but I clicked "run_StableCascade.bat" like I usually do (it's been working for a couple weeks now no problem) but today, it looked like it was downloading some new safetensors and some other stuff and now it won't work at all. "raise AttributeError(f"module {self.__name__} has no attribute {name}") AttributeError: module diffusers has no attribute StableCascadeUNet" is the last thing that pops up.

David Allen Neron

yes you have to use 128x128 pixels to make it work. i mean increase width or height 128 pixel or reduce 128 pixel

Furkan Gözükara

Running this notebook on Kaggle, generally works fine. What's cmd line option for low VRAM, please? I tried --lowvram after the --fp16, didn't seem to make any difference, still got numerous out of memory errors. MAY be due to the WxH ratios, as I was experimenting with different sizes. Nothing over about 1Mpix would work, so any WxH < 1Mpix seemed to work.

Rick B

ye this is not appropriate way. we need to be able to load .safetensors. I have reported this issue here you can reply : https://github.com/huggingface/diffusers/pull/6487

Furkan Gözükara

G:\Cache\hub\models--stabilityai--stable-cascade-prior\snapshots\621fc2ddab5500e57079e716c15358a25b649090 i then replace the items of each folder overwrite the files (*not the folders*) of the diffuser model trained in onetrainer. then start the cascade app and use it. please let me know if my explanation is not clear ill create a screen recording if required. The directory is the cache directory of HF.

Hassan Alhassan

the diffusers not supporting model loading yet. i am waiting it. ok changed number of images scale to 200. just do a git pull

Furkan Gözükara

can we have a field where we can select a model from the local drive? i tried to edit the code to include the field but wasn't able to. one more thing the scale for the number of images has a very high value i think decreasing it to 100 or 200 will be better, because in the current state, the slider is not usable you need to fill it manually.

Hassan Alhassan

I am following diffusers library. i think they havent added that yet.

Furkan Gözükara

Do you plan adding IMG2IMG they have implemented it in comfy few days ago. But your app still produces better results.

Ivan Stoyneshki

I am waiting Diffusers pipeline to implement .safetensors loading, fix errors and merge into main diffusers

Furkan Gözükara

Any updates on training Cascade?

Mike Caesar

yes it is a great one. i introduced it to the community on reddit first. on my todo list hopefully.

Furkan Gözükara

Hi there is new version of A1111 called forge UI, I found this is faster than A1111. I found this comment in one of my communities. "There is a new stable diffusion interface called Forge that seems to be faster then Automatic1111 in special on those who dont have so powerfull pc. I used to struggle to run sdxl on my older pc with 6GB VRAM and crashed a lot, on the forge version seems to run it and even worked with hires fix and is way faster then automatic1111 You can download it from here https://github.com/lllyasviel/stable-diffusion-webui-forge" If it's true please make an installer for this too.

Pallavi Chauhan

Can you let me know the error? Because no such error should happen. We should fix it.

Furkan Gözükara

I am verry happy with the results that I am getting. But after several (usually 6) generations the UI gives an error message. May I kindly request to add restart button on the UI so the backend script to be restarted without launching BAT again. Thank you.

Ivan Stoyneshki

hello. yes hopefully i will make tutorial. but first diffusers library has to become better like loading .safetensors files

Furkan Gözükara

thanks a lot for this! What I didnt fully understand yet is if lora training is already available for this.. will you do a tutorial for that soon? thanks again!

Florian Maas

hello. what is your GPU model? which installation have you made? they made some fixes to the diffusers pipe i will try again now to see if working

Furkan Gözükara

No matter what prompt I'm entering, I get a black image. Help?

Omar Kamel

we already have batch generation. ye adding different prompts thing is harder. but you can batch generate with 1 prompt.

Furkan Gözükara

Add please batch generation. I am thinking of generating regularization images using this model, I need to generate images in batch, with a list of prompts.

daniel mendoza

not yet. diffusers not supporting safetensors yet i tried. i am going to ask this as well right now : https://github.com/huggingface/diffusers/pull/6487

Furkan Gözükara

Is it possible to use this custom model (already) posted to Civitai? I figure there may be issues w/ formats, but wanted to check: https://civitai.com/models/306144

John Dopamine

i think delete old folder and install again. it will not redownload cached files and it will install the latest version with a clean venv. alternatively you can do git pull, and activate venv and reinstall requiremets .txt file

Furkan Gözükara

How can I update to the latest version. I installed v3

Umut Hasanoglu

I prepared kaggle version but due to this bug not working : https://github.com/huggingface/diffusers/issues/6970 you can use that notebook on a paid colab that supports BF16. notebook is included in zip file

Furkan Gözükara

Is there a CoLab version?

Tom Preece

awesome. yes i use python 3.10.11 most widely supported version

Furkan Gözükara

It works perfect, you just have to create the environment in conda with python==3.10.11. Thank you very much, I wanted to try stable diffusion cascade.

daniel mendoza

I have reported this issue. Currently it doesn't support FP16. once they fixed I will update the starter . bat file. I already added option to start as FP16. you can also leave a comment here : https://github.com/huggingface/diffusers/issues/6970

Furkan Gözükara

I have 1080ti and get error for bfloat and something that says my gpu is very old. Is there is a workaround i have a model with 12gb of vram

Ivan Stoyneshki

Checking right now they could have made update

Furkan Gözükara

Very good question. I am looking for an answer right now which model is loaded exactly

Furkan Gözükara

Not working after installation. Please fix. ModuleNotFoundError: No module named 'diffusers'

Thomas G

Can this use the full big models, the 14gb Stage C etc? I have a 4090 so I have the vram for it.

Andi Merxhani

i am waiting it to be adapted to search that :)

Furkan Gözükara

it installs in the downloaded folder by default with generating a venv. i never had such problem like that. can you make a video and show?

Furkan Gözükara

The windows script by default installs into %WINDIR%\System32, maybe you should add a line to set current to the current script dir to avoid this?

Ian Claxton

use the file at the bottom of the post for now it will work

Erosi

Waiting for Very Best training Workflow :P

ccceecc ccceecc

Hy, i cant download the zip file. I become this message: 0 code 902 code_name "AttachmentNotFound" detail "Attachment with id 17685160 was not found." id "aabce063-1163-5e53-94c2-6cf4671d4cc2" status "404" title "Attachment was not found."

puk

in case anyone want to know. Stable Cascade is not censored https://civitai.com/posts/1427167

Hung Do

thank you so much for your support

Furkan Gözükara

You are the Man!!!

Phillip Berry

it runs without low vram blazing fast. i also have rtx 3090. use high vram

Furkan Gözükara

you are welcome thanks for supporting me

Furkan Gözükara

yes i think a lot better

Furkan Gözükara

you are welcome

Furkan Gözükara

this one downloads into hugging face cache since uses diffusers pipeline

Furkan Gözükara

thanks fixed text link

Furkan Gözükara

yes try low vram. it used like 9gb on my pc but may work good on 8 gb. let me know

Furkan Gözükara

Any options for 8GB VRAM?

leem0nchu

You still have stable_cascade_v1.zip in the text and that link is wrong

Kallamamran

Where to put models if I already downloaded it?

George Gostyshev

Super cool. Thank you!

EnjoyerOfAll

Does this model understands text better? kinda like DALL-E 3?

Erosi

Thanks man! that was super fast!!!

Roman Nadtochiy

I have 3090, will it run without low VRAM option?

Neven Krcmarek


Related Creators