r3gm commited on
Commit
0927022
1 Parent(s): a71eaf9

Update src/mdx.py

Browse files
Files changed (1) hide show
  1. src/mdx.py +2 -2
src/mdx.py CHANGED
@@ -238,8 +238,8 @@ class MDX:
238
  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):
239
  device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
240
 
241
- device_properties = torch.cuda.get_device_properties(device)
242
- vram_gb = device_properties.total_memory / 1024**3
243
  m_threads = 1 if vram_gb < 8 else 2
244
 
245
  model_hash = MDX.get_hash(model_path)
 
238
  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):
239
  device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
240
 
241
+ #device_properties = torch.cuda.get_device_properties(device)
242
+ vram_gb = 6 #device_properties.total_memory / 1024**3
243
  m_threads = 1 if vram_gb < 8 else 2
244
 
245
  model_hash = MDX.get_hash(model_path)