yjh0410 1 年之前
父节点
当前提交
36f0d42ef9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      yolo/train.py

+ 1 - 0
yolo/train.py

@@ -203,6 +203,7 @@ def train():
 
 
     # Empty cache after train loop
     # Empty cache after train loop
     del trainer
     del trainer
+    del garbage
     if args.cuda:
     if args.cuda:
         torch.cuda.empty_cache()
         torch.cuda.empty_cache()