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.