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

Upscaling is broken: Invalid arguments: the model name doesn't contain scale

UnknownUser95 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

Upscaling immediately crashes, wrong arguments for upscaler.

The logs mention: 🚨 Error: The model name doesn't contain scale. Please make sure that the model name contains x2, x3, x4, etc. or 2x, x3, x4, etc.

To Reproduce

Try to upscale an image.

Upscayl Version (or commit hash)

2.10.9 (AUR: upscayl-bin)

Platform

Linux

OS Version

Arch Linux 6.8.7-zen

GPU Name

AMD XFX 6900XT

Expected Behavior

The image is upscaled.

Screenshots

No response

Logs

πŸ“‚ DIRNAME /opt/upscayl/app.asar/export/electron
APPIMAGE env is not defined, current application is not an AppImage
19:45:42.409 β€Ί πŸš€ UPSCAYL EXEC PATH:  /opt/upscayl/bin/upscayl-bin
19:45:42.411 β€Ί πŸš€ MODELS PATH:  /opt/upscayl/models
19:45:42.971 β€Ί 🎯 GET_MODELS_LIST:  
19:45:42.993 β€Ί πŸ“ Updating Output Folder Path:  "/home/$USER/Documents/Bac/#Unsynched"
19:45:42.994 β€Ί πŸ’Ύ Updating Remember Output Folder:  true
19:45:42.994 β€Ί πŸ“ Updating Compression:  null
19:45:42.995 β€Ί πŸ–Ό Updating No Image Processing:  false
19:45:42.996 β€Ί βš™ Getting saveImageAs from localStorage:  png
19:45:42.996 β€Ί βš™ Getting model from localStorage:  {"label":"General Photo (Ultramix Balanced)","value":"ultramix_balanced"}
19:45:42.996 β€Ί βš™ Setting gpuId to empty string
19:45:42.996 β€Ί πŸ”€ Setting model to null
19:45:42.998 β€Ί πŸ”€ Setting model to ultramix_balanced
19:45:43.000 β€Ί πŒ– BACKEND REPORTED:  πŸ“ Updating Output Folder Path:  "/home/$USER/Documents/Bac/#Unsynched"
19:45:43.029 β€Ί πŒ– BACKEND REPORTED:  πŸ’Ύ Updating Remember Output Folder:  true
19:45:43.029 β€Ί πŒ– BACKEND REPORTED:  πŸ“ Updating Compression:  NaN
19:45:43.029 β€Ί πŒ– BACKEND REPORTED:  πŸ–Ό Updating No Image Processing:  false
19:45:43.818 β€Ί πŸ”„ Resetting image paths
[19867:0426/194545.807908:ERROR:browser_main_loop.cc(280)] GLib-GObject: ../glib/gobject/gsignal.c:2685: instance '0x35280215d2b0' has no handler with id '8332'
19:45:45.808 β€Ί πŸ–Ό Updating Image Path:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg
19:45:45.808 β€Ί πŸ“„ Selected File Path:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg
19:45:45.809 β€Ί πŒ– BACKEND REPORTED:  πŸ–Ό Updating Image Path:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg
19:45:45.811 β€Ί πŸ–Ό Selected Image Path:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg
19:45:45.811 β€Ί πŸ“ Selected Image Directory:  /home/$USER/Documents/Bac/#Unsynched
19:45:45.811 β€Ί πŸ–Ό imagePath:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg
19:45:45.812 β€Ί πŸ”€ Extension:  jpg
19:45:45.812 β€Ί πŒ– BACKEND REPORTED:  πŸ“„ Selected File Path:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg
19:45:47.150 β€Ί πŸ”„ Resetting Upscaled Image Path
19:45:47.151 β€Ί πŸ–Ό Updating No Image Processing:  false
19:45:47.152 β€Ί πŸ“ Updating Compression:  0
19:45:47.152 β€Ί Is Default Model? :  true
19:45:47.152 β€Ί βœ… Upscayl Variables:  {"model":"ultramix_balanced","gpuId":null,"saveImageAs":"png","inputDir":"/home/$USER/Documents/Bac/#Unsynched","outputDir":"/home/$USER/Documents/Bac/#Unsynched","fullfileName":"DPJP-photography.jpg","fileName":"DPJP-photography","scale":"4","outFile":"/home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png","compression":0}
19:45:47.153 β€Ί πŸ“’ Upscayl Command:  [
  '-i',
  '/home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg',
  '-o',
  '/home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png',
  '-s 4',
  '-m',
  '/opt/upscayl/models',
  '-n',
  'ultramix_balanced',
  '-f',
  'png'
]
19:45:47.162 β€Ί πŸ‘Ά Updating Child Processes:  {"binary":"/opt/upscayl/bin/upscayl-bin","args":["/opt/upscayl/bin/upscayl-bin","-i","/home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg","-o","/home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png","-s 4","-m","/opt/upscayl/models","-n","ultramix_balanced","-f","png"]}
19:45:47.162 β€Ί πŸ›‘ Updating Stopped:  false
19:45:47.163 β€Ί 🏁 UPSCAYL
19:45:47.164 β€Ί image upscayl:  πŸš€ Starting Upscayl - Copyright Β© 2024
🚨 Error: The model name doesn't contain scale. Please make sure that the model name contains x2, x3, x4, etc. or 2x, x3, x4, etc.

19:45:47.165 β€Ί πŸ’― Done upscaling
19:45:47.165 β€Ί β™» Scaling and converting now...
19:45:47.184 β€Ί πŒ– BACKEND REPORTED:  πŸ–Ό Updating No Image Processing:  false
19:45:47.184 β€Ί πŒ– BACKEND REPORTED:  πŸ“ Updating Compression:  0
19:45:47.185 β€Ί πŒ– BACKEND REPORTED:  Is Default Model? :  true
19:45:47.185 β€Ί πŒ– BACKEND REPORTED:  βœ… Upscayl Variables:  {"model":"ultramix_balanced","gpuId":null,"saveImageAs":"png","inputDir":"/home/$USER/Documents/Bac/#Unsynched","outputDir":"/home/$USER/Documents/Bac/#Unsynched","fullfileName":"DPJP-photography.jpg","fileName":"DPJP-photography","scale":"4","outFile":"/home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png","compression":0}
19:45:47.185 β€Ί πŒ– BACKEND REPORTED:  πŸ“’ Upscayl Command:  -i,/home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg,-o,/home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png,-s 4,-m,/opt/upscayl/models,-n,ultramix_balanced,-f,png
19:45:47.185 β€Ί πŒ– BACKEND REPORTED:  πŸ‘Ά Updating Child Processes:  {"binary":"/opt/upscayl/bin/upscayl-bin","args":["/opt/upscayl/bin/upscayl-bin","-i","/home/$USER/Documents/Bac/#Unsynched/DPJP-photography.jpg","-o","/home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png","-s 4","-m","/opt/upscayl/models","-n","ultramix_balanced","-f","png"]}
19:45:47.185 β€Ί πŒ– BACKEND REPORTED:  πŸ›‘ Updating Stopped:  false
19:45:47.186 β€Ί πŒ– BACKEND REPORTED:  image upscayl:  πŸš€ Starting Upscayl - Copyright Β© 2024
🚨 Error: The model name doesn't contain scale. Please make sure that the model name contains x2, x3, x4, etc. or 2x, x3, x4, etc.

19:45:47.186 β€Ί 🚧 UPSCAYL_PROGRESS:  πŸš€ Starting Upscayl - Copyright Β© 2024
🚨 Error: The model name doesn't contain scale. Please make sure that the model name contains x2, x3, x4, etc. or 2x, x3, x4, etc.

19:45:47.186 β€Ί πŒ– BACKEND REPORTED:  πŸ’― Done upscaling
19:45:47.186 β€Ί πŒ– BACKEND REPORTED:  β™» Scaling and converting now...
19:45:47.186 β€Ί upscaledImagePath:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png
19:45:47.187 β€Ί πŸ’― UPSCAYL_DONE:  /home/$USER/Documents/Bac/#Unsynched/DPJP-photography_upscayl_4x_ultramix_balanced.png

Note: There is no output image, even though the logs mention it.

I just found out:

Upscayl works if I use

  • REAL-ESRGAN
  • Fast REAL-ESRGAN
  • Digital Art

It doesn't work on

  • Remacri
  • Ultramix Balanced
  • Ultrasharp

The three latter ones all have the same error as I posted (model name doesn't contain scale).

Duplicate of #792, but that guy hung instead. Weird. TL;DR: download Upscayl again, or just flag that AUR package out of date. 2.10.9 is our prerelease.

As I was writing this, you posted you answer.

As you said 2.11 (e.g. the Flatpak version) fixes this.

Also in the time between me posting this and now answering the AUR package got flagged as Out-Of-Date, so that's already done.

Anyway, still thank you for the answer.