Closed Mr-ind1fferent closed 1 year ago
3060怎么推理跑不动会直接炸,用这个模型跑视频的
多少显存的3060啊,输入尺寸多少?
你可以试试这个:torch.utils.checkpoint ,把这个加在模型(model.py)里,显存能减少好多。
6gb
是在推理过程中,非训练,显存不足
哦哦,你把图像缩小,或者用这个torch.utils.checkpoint试试看呢。
在哪里更改图片大小
你加载的时候resize一下就好啦
3060怎么推理跑不动会直接炸,用这个模型跑视频的