xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
28.35k stars 3.56k forks source link

How to switch GPU? #225

Open chaozuoyedemengxin opened 2 years ago

chaozuoyedemengxin commented 2 years ago

How to switch GPU?Error CUDA out of memory. Tried to allocate 730.00 MiB (GPU 0; 4.00 GiB total capacity; 993.00 MiB already allocated; 110.20 MiB free; 2.31 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

kodxana commented 2 years ago

You need use --tile option to reduce memory usage.

chaozuoyedemengxin commented 2 years ago

Google Translate. Thank you so much. The tile parameter is useful, and works great when it's large enough. I set it too small.

------------------ 原始邮件 ------------------ 发件人: "xinntao/Real-ESRGAN" @.>; 发送时间: 2022年1月21日(星期五) 上午6:11 @.>; @.**@.>; 主题: Re: [xinntao/Real-ESRGAN] How to switch GPU? (Issue #225)

You need use --tile option to reduce memory usage.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

tangze-Asuka commented 2 years ago

tile

Hello, what is your tile setting? My memory is the same as yours

chaozuoyedemengxin commented 2 years ago

您好,您的磁贴设置是什么?我的记忆和你一样

310-320,效果差不多