question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vram requirements

See original GitHub issue

Hi there. I wanted to try this project with its amazing examples of face upscaling. I’m on a P5000 with roughly 13.3GB of usable VRAM in Windows 10 but I’ve gotten out of memory errors in trying to upscale my own image. I even cropped in to the face as far as I could but it always fails.

I’m on Python 3.8 with the latest versions of all of the requirements and cudatoolkit 10,1 (from conda)

These are some of the messages I’ve gotten back

RuntimeError: CUDA out of memory. Tried to allocate 5.13 GiB (GPU 0; 16.00 GiB total capacity; 5.34 GiB already allocated; 4.59 GiB free; 8.47 GiB reserved in total by PyTorch)
RuntimeError: CUDA out of memory. Tried to allocate 2.95 GiB (GPU 0; 16.00 GiB total capacity; 12.10 GiB already allocated; 962.25 MiB free; 12.12 GiB reserved in total by PyTorch)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Steve-Todcommented, Apr 24, 2020

In our experiments, we crop the images based on landmark annotations following previous works. First, we find a rectangular bounding box that can cover the landmarks tightly. Then we crop this bounding box to a square box with length equal to the short side of the rectangular box centered at the same point. Finally, we crop the image with the square box expanded by a scale factor of 1.3 and resize it to 128X128 by bicubic. I think a large difference in cropping strategies might affect the performance while small differences might have sight effects since the alignment network can help localize the faces.

0reactions
DarkerDreamercommented, Apr 24, 2020

The unsatisfactory results might be caused by different preprocessing. In our experiments, images are cropped in a uniform way based on the detected face landmarks.

Hi, I wonder what kind of preprocessing method is applied? Does different cropping method lead to different results?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Much VRAM Do You Need For Gaming? - GPU Mag
720P – 2GB of VRAM · 1080P – 2GB-6GB of VRAM · 1440P – 4-8GB of VRAM · 4K – 8GB+ VRAM.
Read more >
Does GPU Memory Matter? How Much VRAM Do You Need?
The absolute minimum VRAM requirement for 3D modeling, animation, video editing, and graphic design sits between 4-6GB of GDDR5. However, it's ...
Read more >
How Much VRAM Do You Need For Gaming? [2022 Guide]
Let's find out. Answer: In 2022, 4 GB of dedicated VRAM should be the bare minimum to aim for in graphics cards. However,...
Read more >
How much GPU memory do I need? | Digital Trends
Dedicated GPUs have their own memory, called VRAM, and not having enough VRAM ... Adobe Premiere Pro's minimum requirement for VRAM is 2GB, ......
Read more >
How much VRAM do you realistically need in 2021? - Reddit
Well Apex will run on 1GB of VRAM or around half that but that's just meeting the minimum requirements. The recommended VRAM is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found