Justin62628 / Squirrel-RIFE

效果更好的补帧软件,显存占用更小,是DAIN速度的10-25倍,包含抽帧处理,去除动漫卡顿感
GNU General Public License v3.0
3.11k stars 176 forks source link

检测内存爆炸前停止读帧 #495

Closed Justin62628 closed 1 year ago

Justin62628 commented 1 year ago
mem = psutil.virtual_memory()
# since the speed of producer (model inference) is faster than the consumer (I/O)
# if there is a risk of OOM, just sleep to let the consumer work
if mem.percent > 80.0:
    time.sleep(30)

https://github.com/TencentARC/AnimeSR

Justin62628 commented 1 year ago

SVFI 3.25.2-alpha