yjh0410 1 yıl önce
ebeveyn
işleme
36f0d42ef9
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      yolo/train.py

+ 1 - 0
yolo/train.py

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