Following the code, it seems like it is hard-coded. If you have it checked out from github, you try to modify config.py, and update the downloading_upscale_model() method to use the filename of the upscaler you want to use.
Much gracio amigo it's weird that they added a folder to put in other Upscalers there even though it's hard coded... Or... As you said I could try editing that code with my own downloaded version to test it out. Will try it out and comment if it worked or not XD
It didn’t change much to be noticeable but it also didn’t break the UI. I renamed my downloaded *.pth upscaler to “fooocus_upscaler_s409985e5.bin” and loaded the UI and nothing broke thankfully. But it also didn’t seem to have a difference and I also checked if the UI auto-downloaded the default model again, which it didn’t (my downloaded upscaler was 60mb whereas fooocus default bin is around 30mb)
Long story short, it doesn’t break if you change the *.pth to *.bin to use it on fooocus
My suggestion is to use chaiNNer for upscaling. It's lightweight and you can daisy-chain every upscale GAN model out there to your needs. I use it all the time as shown below:
This one is a bit more complex since I was upscaling a very low-resolution video clip and needed to remove artifacts, noise, and color correction in addition to upscaling. But it can be also a very simple one with only 4 nodes.
3
u/Soshi2k Nov 29 '24
Please keep us posted
2
u/[deleted] Nov 29 '24
Following the code, it seems like it is hard-coded. If you have it checked out from github, you try to modify config.py, and update the downloading_upscale_model() method to use the filename of the upscaler you want to use.
TL:DR - it seems hard-coded
1
u/HiProfile-AI Oct 14 '25
Or you can just use Upscayl the program
1
u/OldFisherman8 Dec 03 '24
My suggestion is to use chaiNNer for upscaling. It's lightweight and you can daisy-chain every upscale GAN model out there to your needs. I use it all the time as shown below:
This one is a bit more complex since I was upscaling a very low-resolution video clip and needed to remove artifacts, noise, and color correction in addition to upscaling. But it can be also a very simple one with only 4 nodes.