freyza commited on
Commit
b4c99e0
1 Parent(s): 8f2d077

Update src/mdx.py

Browse files
Files changed (1) hide show
  1. src/mdx.py +3 -2
src/mdx.py CHANGED
@@ -240,8 +240,9 @@ class MDX:
240
  def run_mdx(model_params, output_dir, model_path, filename, exclude_main=False, exclude_inversion=False, suffix=None, invert_suffix=None, denoise=False, keep_orig=True, m_threads=2):
241
  device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
242
 
243
- device_properties = torch.cuda.get_device_properties(device)
244
- vram_gb = device_properties.total_memory / 1024**3
 
245
  m_threads = 1 if vram_gb < 8 else 2
246
 
247
  model_hash = MDX.get_hash(model_path)
 
240
  def run_mdx(model_params, output_dir, model_path, filename, exclude_main=False, exclude_inversion=False, suffix=None, invert_suffix=None, denoise=False, keep_orig=True, m_threads=2):
241
  device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
242
 
243
+ #device_properties = torch.cuda.get_device_properties(device)
244
+ print("Device", device)
245
+ vram_gb = 12 #device_properties.total_memory / 1024**3
246
  m_threads = 1 if vram_gb < 8 else 2
247
 
248
  model_hash = MDX.get_hash(model_path)