yjh0410 1 년 전
부모
커밋
afd10d88c5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()