[GH-ISSUE #22] 6Gb Vram, does work? #21

Closed
opened 2026-10-30 21:27:44 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @AnyKillAtor on GitHub (Jun 1, 2024).
Original GitHub issue: https://github.com/Haoming02/sd-webui-old-photo-restoration/issues/22

I have a Laptop with 6gb Vram, I vram error, can I fix it?

Originally created by @AnyKillAtor on GitHub (Jun 1, 2024). Original GitHub issue: https://github.com/Haoming02/sd-webui-old-photo-restoration/issues/22 I have a Laptop with 6gb Vram, I vram error, can I fix it?
Author
Owner

@Haoming02 commented on GitHub (Jun 5, 2024):

Try editing this line

https://github.com/Haoming02/sd-webui-old-photo-restoration/blob/main/scripts/main_function.py#L25

to:

GPU_ID = -1

to run it on the CPU instead.

<!-- gh-comment-id:2149437814 --> @Haoming02 commented on GitHub (Jun 5, 2024): Try editing this line > https://github.com/Haoming02/sd-webui-old-photo-restoration/blob/main/scripts/main_function.py#L25 to: ```py GPU_ID = -1 ``` to run it on the CPU instead.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Haoming02/sd-webui-old-photo-restoration#21
No description provided.