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
     del trainer
+    del garbage
     if args.cuda:
         torch.cuda.empty_cache()