AItool commited on
Commit
e56abbd
·
verified ·
1 Parent(s): 12bd70f

Update inference_img.py

Browse files
Files changed (1) hide show
  1. inference_img.py +1 -4
inference_img.py CHANGED
@@ -5,9 +5,7 @@ import argparse
5
  from torch.nn import functional as F
6
  import warnings
7
 
8
-
9
-
10
- warnings.filterwarnings("ignore")
11
 
12
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
  torch.set_grad_enabled(False)
@@ -118,4 +116,3 @@ import warnings
118
  print(f"Saving to {save_path} → success: {success}")
119
 
120
  print("Checkpoint reached!")
121
-
 
5
  from torch.nn import functional as F
6
  import warnings
7
 
8
+ warnings.filterwarnings("ignore")
 
 
9
 
10
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
  torch.set_grad_enabled(False)
 
116
  print(f"Saving to {save_path} → success: {success}")
117
 
118
  print("Checkpoint reached!")