yjh0410 vor 1 Jahr
Ursprung
Commit
36f0d42ef9
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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()