quantumos commited on
Commit
56305a5
·
verified ·
1 Parent(s): 6a624e1

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +0 -5
inference.py CHANGED
@@ -134,11 +134,6 @@ class InferenceEngine(object):
134
  setattr(self, key, value)
135
  print("Image width: ", self.image_width)
136
  print("Image height: ", self.image_height)
137
- # Ensure face_analyzer_path is set
138
- if not hasattr(self, 'face_analyzer_path'):
139
- self.face_analyzer_path = args.get('face_analyzer_path', None)
140
- if not self.face_analyzer_path:
141
- raise ValueError("face_analyzer_path is not provided in the arguments.")
142
 
143
  def load_models(self):
144
  self.device = torch.device(f'cuda:{self.gpu_id}')
 
134
  setattr(self, key, value)
135
  print("Image width: ", self.image_width)
136
  print("Image height: ", self.image_height)
 
 
 
 
 
137
 
138
  def load_models(self):
139
  self.device = torch.device(f'cuda:{self.gpu_id}')