lllyasviel / style2paints

sketch + style = paints :art: (TOG2018/SIGGRAPH2018ASIA)
Apache License 2.0
18.06k stars 2.09k forks source link

Ran out of memory try to allocate 2.20GiB, but I have a 8GB GTX1080. style2paints45beta1214B #136

Open catscarlet opened 4 years ago

catscarlet commented 4 years ago

using style2paints45beta1214B.

OS: Win7x64 CPU: i7-4790K MEM: DDR3 16G Graphic Card: Gigabyte GeForce® GTX 1080 G1 Gaming 8G (Driver version: v442.19)

here is a screenshot. snap2971

Tell me if you need more debug log or whatever.

lllyasviel commented 4 years ago

It seems that you have more than one gpu.  If that is the case,  maybe you can try disabling other gpus and enforce s2p to use your 1080.

---Original--- From: "Cat Scarlet"<notifications@github.com> Date: Tue, Feb 18, 2020 18:17 PM To: "lllyasviel/style2paints"<style2paints@noreply.github.com>; Cc: "Subscribed"<subscribed@noreply.github.com>; Subject: [lllyasviel/style2paints] Ran out of memory try to allocate 2.20GiB, but I have a 8GB GTX1080. style2paints45beta1214B (#136)

using style2paints45beta1214B.

OS: Win7x64 CPU: i7-4790k GPU: Nivdia GTX1080 with 8GB (v442.19)

here is a screenshot.

Tell me if you need more debug log or whatever.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

catscarlet commented 4 years ago

It seems that you have more than one gpu.  If that is the case,  maybe you can try disabling other gpus and enforce s2p to use your 1080. ---Original--- From: "Cat Scarlet"<notifications@github.com> Date: Tue, Feb 18, 2020 18:17 PM To: "lllyasviel/style2paints"<style2paints@noreply.github.com>; Cc: "Subscribed"<subscribed@noreply.github.com>; Subject: [lllyasviel/style2paints] Ran out of memory try to allocate 2.20GiB, but I have a 8GB GTX1080. style2paints45beta1214B (#136) using style2paints45beta1214B. OS: Win7x64 CPU: i7-4790k GPU: Nivdia GTX1080 with 8GB (v442.19) here is a screenshot. Tell me if you need more debug log or whatever. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

I don't get it. I only have one Graphic Card and it is Gigabyte GeForce® GTX 1080 G1 Gaming 8G. I don't know the GPU number. The Core Number in Specification said CUDA® Cores was 2560 (A Nvidia Thing).

What should I next?

stefnotch commented 4 years ago

Is it possible that you have an integrated graphics card?

Since you have an Nvidia graphics card, you should be able to open the "Nvidia Control Panel" and check which graphic card gets used by default.

image

catscarlet commented 4 years ago

I'm using an old i7-4790K, not brandnew F-series, and it has an integrated GPU. In my NVIDIA Control Panel(Version 8.1.940.0), there isn't "Prefered graphics processor" section. I'm using the default setting of NVIDIA Control Panel.

stefnotch commented 4 years ago

When you right click a program, do you have a Run with graphics processor option? From there, you should also be able to change the default graphics processor.

image

lllyasviel commented 4 years ago

Are you running other GPU software like photoshop or unity or dynamic wallpaper or music player or something else? Maybe you could try close all other software and run s2p again.

catscarlet commented 4 years ago

When you right click a program, do you have a Run with graphics processor option? From there, you should also be able to change the default graphics processor.

image

I'm using desktop, not laptop, so there isn't such a thing like Run with graphics processor

catscarlet commented 4 years ago

Are you running other GPU software like photoshop or unity or dynamic wallpaper or music player or something else? Maybe you could try close all other software and run s2p again.

Nope. Just s2p only. This Graphic Card has 8G memory but the debug log says it failed on allocate 3GB memory. Normally how much memory does s2p use?

catscarlet commented 4 years ago

Are you running other GPU software like photoshop or unity or dynamic wallpaper or music player or something else? Maybe you could try close all other software and run s2p again.

Oh. Sorry I just realized I ran Chrome at that moment(with hardware acceleration off). I reinstalled my computer and didn't reinstall Chrome (Use Firefox instead), not it's fine. Can't reproduce now.