start.bat
to comfyui.bat
because there is already a windows command by that name, which
creates some problems. Also added fix-update.bat
which solves the problem that causes not being able to
update to the latest version.patchzluda.bat
once. Of course, remember the
first time for every type of model would take extra time. You can still use both zluda's on the same machine btw. But
I recommend updating.[!IMPORTANT]
📢 REGARDING KEEPING THE APP UP TO DATE
Avoid using the update function from the manager, instead use
git pull
, which we are doing on every start ifstart.bat
is used. (App Already Does It Every Time You Open It, If You Are Usingcomfyui.bat
, So This Way It Is Always Up To Date With Whatever Is On My GitHub Page)Only use comfy manager to update the extensions (Manager -> Custom Nodes Manager -> Set Filter To Installed -> Click Check Update On The Bottom Of The Window) otherwise it breaks the basic installation, and in that case run
install.bat
once again.📢 REGARDING RX 480-580 AND SIMILAR GPUS
After a while we need to keep updating certain packages to keep up with the original app and certain requirements of some models etc. So, torch is changed over time , but this gave gpu's prior to rdna some negative performance. So for these gpu's please use
fixforrx580.bat
if you are having memory problems too much slowdown etc. This is not mandatory and it won't just make your gpu faster then before but it would be less problematic then using latest torch that we use with other gpu's.📢 RANDOM TIPS & TRICKS REGARDING USING AMD GPU'S
- The generation speed is slower than nvidia counterparts we all know and accept it, but most of the time the out of memory situation at the end with VAE decoding is worse. To overcome this use "--cpu-vae". Add it to commandline_args on comfyui.bat. You can now decode using your system memory (the more the memory the better) and your cpu power. This might be slower but at least it works.
If coming from the very start, you need :
C:\\Program Files\\AMD\\ROCm\\5.7\\
(This is the default folder, if you
have installed it on another drive, change if necessary)
Open a cmd prompt.
git clone https://github.com/patientx/ComfyUI-Zluda
cd ComfyUI-Zluda
install.bat
to start for later use (or create a shortcut to) :
comfyui.bat
also for later when you need to repatch zluda (maybe a torch update etc.) you can use:
patchzluda.bat
[!NOTE] This might happen with torch changes , zluda version changes and / or gpu driver changes.
pip cache purge
xformers
isn't usable with zluda so any nodes / packages that require it doesn't work. Flash attention
doesn't work. And lastly using codeformer
for face restoration gives "Failed inference: CUDA driver error:
unknown error" You should use gfpgan / gpen / restoreformer or other face restoration models.cublas64_11.dll (196kb)
cusparse64_11.dll (193kb)
nvrtc64_112_0.dll (125kb)
If they are there but bigger files
run : patchzluda.bat
install.bat
git fetch --all
and then
git reset --hard origin/master
now you can git pullcaffe2_nvrtc.dll
: if you are sure you properly installed hip and can see it on path, please DON'T use
python from windows store, use the link provided or 3.11 from the official website. After uninstalling python from
windows store and installing the one from the website, be sure the delete venv folder, and run install.bat once again.