upscayl / upscayl

πŸ†™ Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Home Page:https://upscayl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.10.9 Upscale Failure

WeirdScienceX opened this issue Β· comments

Checklist

  • I have tried ALL of the steps mentioned in the troubleshooting guide.
  • I have searched for this in the issues tab.
  • My error involves vkEnumeratePhysicalDevices or vkCreateInstance, which means I should ignore the other issues and file this one despite the last checkbox.

Describe the Bug

Fails to upscale, appears to be looking in the wrong location for models

To Reproduce

Try to upscale any image

Upscayl Version (or commit hash)

2.10.9

Platform

Windows

OS Version

Win 11 23H2

GPU Name

RTX 3080TI

Expected Behavior

Image Upscaled

Screenshots

No response

Logs

βš™οΈ Getting saveImageAs from localStorage:  png
βš™οΈ Getting model from localStorage:  {"label":"General Photo (Ultramix Balanced)","value":"ultramix_balanced"}
βš™οΈ Setting gpuId to empty string
πŸ”€ Setting model to 
πŒ– BACKEND REPORTED:  πŸ“ Updating Output Folder Path:  "D:\\TEMP\\misc"
πŸ”€ Setting model to ultramix_balanced
πŒ– BACKEND REPORTED:  πŸ’Ύ Updating Remember Output Folder:  false
πŸ”„ Resetting image paths
‡️ Dropped file:  {"type":"image/png","filePath":"D:\\TEMP\\misc\\boat1.png","extension":"png"}
πŸ–Ό Setting image path:  D:\TEMP\misc\boat1.png
πŸ—‚ Setting output path:  D:\TEMP\misc
πŸ–Ό imagePath:  D:\TEMP\misc\boat1.png
πŸ”€ Extension:  png
πŸ”„ Resetting Upscaled Image Path
🏁 UPSCAYL
πŒ– BACKEND REPORTED:  πŸ–ΌοΈ Updating No Image Processing:  false
πŒ– BACKEND REPORTED:  πŸ“ Updating Compression:  0
πŒ– BACKEND REPORTED:  Is Default Model? :  true
πŒ– BACKEND REPORTED:  βœ… Upscayl Variables:  {"model":"ultramix_balanced","gpuId":null,"saveImageAs":"png","inputDir":"D:\\TEMP\\misc","outputDir":"D:\\TEMP\\misc","fullfileName":"boat1.png","fileName":"boat1","scale":"4","outFile":"D:\\TEMP\\misc\\boat1_upscayl_4x_ultramix_balanced.png","compression":0}
πŒ– BACKEND REPORTED:  πŸ“’ Upscayl Command:  -i,D:\TEMP\misc\boat1.png,-o,D:\TEMP\misc\boat1_upscayl_4x_ultramix_balanced.png,-s 4,-m,C:\Program Files\Upscayl\resources\models,-n,ultramix_balanced,-f,png
πŒ– BACKEND REPORTED:  πŸ‘Ά Updating Child Processes:  {"binary":"C:\\Program Files\\Upscayl\\resources\\bin\\upscayl-bin","args":["C:\\Program Files\\Upscayl\\resources\\bin\\upscayl-bin","-i","D:\\TEMP\\misc\\boat1.png","-o","D:\\TEMP\\misc\\boat1_upscayl_4x_ultramix_balanced.png","-s 4","-m","C:\\Program Files\\Upscayl\\resources\\models","-n","ultramix_balanced","-f","png"]}
πŒ– BACKEND REPORTED:  πŸ›‘ Updating Stopped:  false
πŒ– BACKEND REPORTED:  image upscayl:  [0 NVIDIA GeForce RTX 3080 Ti]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 NVIDIA GeForce RTX 3080 Ti]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 NVIDIA GeForce RTX 3080 Ti]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 3080 Ti]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1

🚧 UPSCAYL_PROGRESS:  [0 NVIDIA GeForce RTX 3080 Ti]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 NVIDIA GeForce RTX 3080 Ti]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 NVIDIA GeForce RTX 3080 Ti]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 3080 Ti]  subgroup=32  basic=1  vote=1  ballot=1  shuffle=1

πŒ– BACKEND REPORTED:  image upscayl:  _wfopen C:\Program Files\Upscayl\resources\bin\models/realesrgan-x4plus.param failed

🚧 UPSCAYL_PROGRESS:  _wfopen C:\Program Files\Upscayl\resources\bin\models/realesrgan-x4plus.param failed

πŒ– BACKEND REPORTED:  ❌ INVALID GPU OR FAILED
βš™οΈ Getting saveImageAs from localStorage:  png
βš™οΈ Getting model from localStorage:  {"label":"General Photo (Ultramix Balanced)","value":"ultramix_balanced"}
βš™οΈ Setting gpuId to empty string

I have the same issue.

The models folder path is wrong in Windows. (See the log)
Copy the resources/models folder to resources/bin/models.
Howerver, the upscaled output file size is ZERO.

Thank you for reporting! We'll fix it

Strange,

-m,C:\Program Files\Upscayl\resources\models,-n,ultramix_balanced

The models path is correct here but the backend reads: C:\Program Files\Upscayl\resources\bin\models/realesrgan-x4plus.param for some reason.

Could you try changing the models?

Could you try changing the models?

I copied 'resources/models' to 'resources/bin/models'.

The outputs of all models are empty. (file size is zero)

I found the reason why the output is empty.
Can you check the -s option in the source code?
On the command line, the -s [number] option is enclosed in quotes, like [β€œ-s 2”], not [-s 2].
If you use [-s 2], the output is OK.

Could you try changing the models?

I copied 'resources/models' to 'resources/bin/models'.

The outputs of all models are empty. (file size is zero)

I found the reason why the output is empty. Can you check the -s option in the source code? On the command line, the -s [number] option is enclosed in quotes, like [β€œ-s 2”], not [-s 2]. If you use [-s 2], the output is OK.

Ah good catch! Thanks! I'll have to separate the scale value and the option. Will fix that in 2.11, thank you!

@xvim64 Could you please test the latest commit if possible?

@xvim64 Could you please test the latest commit if possible?

I can test it.
Where can I get the nightly test build?

@xvim64 Could you please test the latest commit if possible?

I can test it. Where can I get the nightly test build?

You'll need to follow the instructions here: https://github.com/upscayl/upscayl?tab=readme-ov-file#-development

@NayamAmarshe

You'll need to follow the instructions here: https://github.com/upscayl/upscayl?tab=readme-ov-file#-development

Confirmed fixed.
Now it works well in Windows.