yjh0410 1 năm trước cách đây
mục cha
commit
2663b9b2c6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      yolo/train.py

+ 2 - 2
yolo/train.py

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