[BUG][MEMORY LIMIT] Upscayl fails when upscaling large image
Checklist
- I have checked that this issue isn't addressed in the FAQ.
- I have checked that this issue isn't addressed in any other issue or pull request.
- I have tried setting my GPU ID.
Paste the logs
⚙️ Getting saveImageAs from localStorage: jpg
⚙️ Getting model from localStorage: {"label":"General Photo (Ultrasharp)","value":"ultrasharp"}
⚙️ Getting gpuId from localStorage: 0
Setting model to
Resetting image paths
BACKEND REPORTED: Updating Save Output Folder: false
Setting model to ultrasharp
BACKEND REPORTED: Updating Overwrite: false
Resetting image paths
BACKEND REPORTED: ️ Updating Image Path: C:\Projects\Greece2023\Aphrodite statue on Milos.jpg
BACKEND REPORTED: Selected File Path: C:\Projects\Greece2023\Aphrodite statue on Milos.jpg
Selected Image Path: C:\Projects\Greece2023\Aphrodite statue on Milos.jpg
Selected Image Directory: C:\Projects\Greece2023
imagePath: C:\Projects\Greece2023\Aphrodite statue on Milos.jpg
Extension: jpg
Resetting Upscaled Image Path
UPSCAYL
BACKEND REPORTED: Updating Overwrite: false
BACKEND REPORTED: ✅ Upscayl Variables: [object Object]
BACKEND REPORTED: Upscayl Command: -i,C:\Projects\Greece2023\Aphrodite statue on Milos.jpg,-o,C:\Projects\Greece2023\Aphrodite statue on Milos_upscayl_4x_ultrasharp.jpg,-s,4,-m,C:\Program Files\Upscayl\resources\models,-n,ultrasharp,-g,0,-f,png
BACKEND REPORTED: Updating Child Processes: [object Object]
BACKEND REPORTED: Updating Stopped: false
BACKEND REPORTED: image upscayl: [0 NVIDIA GeForce RTX 2080 Ti] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 2080 Ti] bugsbn1=0 bugbilz=22 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 2080 Ti] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 2080 Ti] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
UPSCAYL_PROGRESS: [0 NVIDIA GeForce RTX 2080 Ti] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 2080 Ti] bugsbn1=0 bugbilz=22 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 2080 Ti] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 2080 Ti] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
BACKEND REPORTED: image upscayl: 0.00%
UPSCAYL_PROGRESS: 0.00%
BACKEND REPORTED: image upscayl: 0.07%
UPSCAYL_PROGRESS: 0.07%
BACKEND REPORTED: image upscayl: 0.15%
UPSCAYL_PROGRESS: 0.15%
BACKEND REPORTED: image upscayl: 0.22%
UPSCAYL_PROGRESS: 0.22%
BACKEND REPORTED: image upscayl: 0.30%
UPSCAYL_PROGRESS: 0.30%
BACKEND REPORTED: image upscayl: 0.37%
UPSCAYL_PROGRESS: 0.37%
BACKEND REPORTED: image upscayl: 0.45%
UPSCAYL_PROGRESS: 0.45%
BACKEND REPORTED: image upscayl: 0.52%
UPSCAYL_PROGRESS: 0.52%
BACKEND REPORTED: image upscayl: 0.60%
Text removed here to reduce the size of the message to the imposed limit of 65K.
UPSCAYL_PROGRESS: 90.40%
BACKEND REPORTED: image upscayl: 90.48%
UPSCAYL_PROGRESS: 90.48%
BACKEND REPORTED: image upscayl: 90.55%
UPSCAYL_PROGRESS: 90.55%
BACKEND REPORTED: Done upscaling
BACKEND REPORTED: ♻ Scaling and converting now...
BACKEND REPORTED: Processing Image: [object Object]
BACKEND REPORTED: ❌ Error processing (scaling and converting) the image. Please report this error on GitHub. Error: Input file is missing: C:\Projects\Greece2023\Aphrodite statue on Milos_upscayl_4x_ultrasharp.jpg
Resetting image paths
Resetting image paths
Resetting image paths
BACKEND REPORTED: ️ Updating Image Path: C:\Projects\Greece2023\White tower.jpg
BACKEND REPORTED: Selected File Path: C:\Projects\Greece2023\White tower.jpg
Selected Image Path: C:\Projects\Greece2023\White tower.jpg
Selected Image Directory: C:\Projects\Greece2023
imagePath: C:\Projects\Greece2023\White tower.jpg
Extension: jpg
Resetting Upscaled Image Path
UPSCAYL
BACKEND REPORTED: Updating Overwrite: false
BACKEND REPORTED: ✅ Upscayl Variables: [object Object]
BACKEND REPORTED: Upscayl Command: -i,C:\Projects\Greece2023\White tower.jpg,-o,C:\Projects\Greece2023\White tower_upscayl_4x_ultrasharp.jpg,-s,4,-m,C:\Program Files\Upscayl\resources\models,-n,ultrasharp,-g,0,-f,png
BACKEND REPORTED: Updating Child Processes: [object Object],[object Object]
BACKEND REPORTED: Updating Stopped: false
BACKEND REPORTED: image upscayl: [0 NVIDIA GeForce RTX 2080 Ti] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 2080 Ti] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 2080 Ti] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 2080 Ti] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
UPSCAYL_PROGRESS: [0 NVIDIA GeForce RTX 2080 Ti] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 2080 Ti] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 2080 Ti] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 2080 Ti] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
BACKEND REPORTED: image upscayl: 0.00%
UPSCAYL_PROGRESS: 0.00%
Text removed here to reduce the size of the file to 65K
BACKEND REPORTED: image upscayl: 76.19%
UPSCAYL_PROGRESS: 76.19%
BACKEND REPORTED: image upscayl: 76.25%
UPSCAYL_PROGRESS: 76.25%
BACKEND REPORTED: Done upscaling
BACKEND REPORTED: ♻ Scaling and converting now...
BACKEND REPORTED: Processing Image: [object Object]
BACKEND REPORTED: ❌ Error processing (scaling and converting) the image. Please report this error on GitHub. Error: Input file is missing: C:\Projects\Greece2023\White tower_upscayl_4x_ultrasharp.jpg
Resetting image paths
Resetting image paths
⚙️ Getting saveImageAs from localStorage: jpg
⚙️ Getting model from localStorage: {"label":"General Photo (Ultrasharp)","value":"ultrasharp"}
⚙️ Getting gpuId from localStorage: 0
⚙️ Getting rememberOutputFolder from localStorage: false
⚙️ Setting compression to 100%Describe the Bug
When attempting to run Upscayl on the image "C:\Projects\Greece2023\Aphrodite statue on Milos.jpg" an error occurs and no upscaled image is produced. Upscayl displays a popup message that indicates that there is an error:
Error processing (scaling and converting) the image. Please report this error on Upscayl GitHub issues page.
The percentage completion counter is just above 90% when the dialog is displayed.
I am using Upscayl 2.8.6.
Attempts to upscale the same image in earlier versions lead to the filing of issue #439. That issue was closed as a memory allocation problem. The image in question is a 51M byte image. The image is too large to upload to github, but could be transferred in other ways if need be.
My GPU seems to operate at about the 58% level, It has 11Gb of memory of which only about 4.3 Gb is used. My machine has 64Gb of memory an memory usage is about 59%
To Reproduce
From the GUI, select the image to be upscaled followed by clicking on the purple UPSCAYL button.
Version/Commit Hash
2.8.6
OS Specifics
Windows 10, Version2H2 (OS Build 19045.3324)
Expected Behavior
The image should have upscaled and a new upscaled image written to the source directory.
Screenshots
No response
Source: upscayl/upscayl