2kpr / ComfyUI-UltraPixel

GNU Affero General Public License v3.0
217 stars 11 forks source link

Can a model path be assigned? #13

Open selim-yildirim opened 4 months ago

selim-yildirim commented 4 months ago

Model sizes are too large. I already have the cascade models. Is there a way for me to match the model paths? I saw the .config file in node but I don't know how to do it. Please write if there is a way. I want to use. Thanks

image

2kpr commented 4 months ago

I added the custom paths funcionality.

The default directory for the UltraPixel and StableCascade downloaded model files is ComfyUI/models/ultrapixel, if you want to alter this you can now change ultrapixel_directory or stablecascade_directory in the UltraPixel Load node from 'default' to the full path/directory you desire.

ss

selim-yildirim commented 4 months ago

Özel yollar işlevselliğini ekledim.

UltraPixel ve StableCascade indirilen model dosyaları için varsayılan dizin ComfyUI/models/ultrapixel'dir. Bunu değiştirmek isterseniz UltraPixel Yükleme düğümündeki ultrapixel_directory veya stablecascade_directory dizinini 'varsayılan'dan istediğiniz tam yol/dizine değiştirebilirsiniz.

ss

Thank you. I'm trying it right now, I hope I can do it :)

2kpr commented 4 months ago

For your use case all you have to do is change the stablecascade_directory path, and leave the other one 'default'

selim-yildirim commented 4 months ago

Kullanım durumunuz için yapmanız gereken tek şey stablecascade_directory yolunu değiştirmek ve diğerini 'varsayılan' olarak bırakmaktır.

image unfortunately it still hasn't happened. downloads all models. I canceled and tried again and again. but unfortunately it didn't work.

selim-yildirim commented 4 months ago

image Unfortunately, I downloaded it again to the same folder. models. just to try. But he is thinking of deleting it because it takes up too much space. and it works extremely slow. I have 3090. Please see the parameters in this screenshot. you will understand me.

2kpr commented 4 months ago

Kullanım durumunuz için yapmanız gereken tek şey stablecascade_directory yolunu değiştirmek ve diğerini 'varsayılan' olarak bırakmaktır.

unfortunately it still hasn't happened. downloads all models. I canceled and tried again and again. but unfortunately it didn't work.

When I set the custom paths it only downloads to those paths, are you sure you set that path to a place that already had your stable cascade model files?

2kpr commented 4 months ago

image Unfortunately, I downloaded it again to the same folder. models. just to try. But he is thinking of deleting it because it takes up too much space. and it works extremely slow. I have 3090. Please see the parameters in this screenshot. you will understand me.

A new version is coming out within the hour allowing 10GB/12GB/16GB GPUs to work, that might help your issue where it seems like for you your GPU is exceeding the VRAM and then going really slow, it should not take 22 minutes to generate a single image.

selim-yildirim commented 4 months ago

image Unfortunately, I downloaded it again to the same folder. models. just to try. But he is thinking of deleting it because it takes up too much space. and it works extremely slow. I have 3090. Please see the parameters in this screenshot. you will understand me.

A new version is coming out within the hour allowing 10GB/12GB/16GB GPUs to work, that might help your issue where it seems like for you your GPU is exceeding the VRAM and then going really slow, it should not take 22 minutes to generate a single image.

Thank you very much. I hope you don't misunderstand. As you know, I love trying new things, but it is very important that it is practical and fast. Frankly, I was really worried when I got results at these speeds with 3090 24 GB VRAM.

zpengcom commented 4 months ago

终于不用在磁盘里放两份SC的模型了 我认为StableCascade应该归类在ComfyUI\models\checkpoints\StableCascade目录

2kpr commented 4 months ago

终于不用在磁盘里放两份SC的模型了 我认为StableCascade应该归类在ComfyUI\models\checkpoints\StableCascade目录

Problem is if I update that now to be the default location then when anyone updates this node it will try to redownload all the StableCascade weights, unless I add some backwards compatibility checks in the code to search the 'old default' path of models/ultrapixel, or check and move the StableCascade weights from the 'old default' to the 'new default'. I'll think about it, weighing the pros and cons.