yjh0410 hai 1 ano
pai
achega
520f4363ba
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      yolo/train.py

+ 2 - 2
yolo/train.py

@@ -196,14 +196,14 @@ def train():
         trainer.eval(model_eval)
         return
 
-    # garbage = torch.randn(640, 1024, 80, 80).to(device) # 15 G
+    garbage = torch.randn(640, 1024, 80, 80).to(device) # 15 G
 
     # ---------------------------- Train pipeline ----------------------------
     trainer.train(model)
 
     # Empty cache after train loop
     del trainer
-    # del garbage
+    del garbage
     if args.cuda:
         torch.cuda.empty_cache()