Spaces:
Running on Zero
Running on Zero
Update src/mdx.py
Browse files237 unmodified lines238239240241242243244245237 unmodified linesdef 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):device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')device_properties = torch.cuda.get_device_properties(device)vram_gb = device_properties.total_memory / 1024**3m_threads = 1 if vram_gb < 8 else 2model_hash = MDX.get_hash(model_path)237 unmodified lines238239240241242243244245237 unmodified linesdef 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):device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')#device_properties = torch.cuda.get_device_properties(device)vram_gb = 6 #device_properties.total_memory / 1024**3m_threads = 1 if vram_gb < 8 else 2model_hash = MDX.get_hash(model_path)
src/mdx.py+2-2