Instructions to use Acapellas/BS-ROFO-SW-Fixed-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Acapellas/BS-ROFO-SW-Fixed-ONNX with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Acapellas/BS-ROFO-SW-Fixed-ONNX", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download model.json from Acapellas/BS-ROFO-SW-Fixed-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 989 Bytes
-
https://huggingface.co/Acapellas/BS-ROFO-SW-Fixed-ONNX/resolve/main/model.json
- Command line
-
hf download hf://Acapellas/BS-ROFO-SW-Fixed-ONNX/model.json
-
curl -L -o model.json https://huggingface.co/Acapellas/BS-ROFO-SW-Fixed-ONNX/resolve/main/model.json
989 Bytes
| { | |
| "model_type": "bs_roformer", | |
| "checkpoint_path": "D:\\BS-ROFO-SW-Fixed\\BS-Rofo-SW-Fixed.ckpt", | |
| "onnx_path": "E:\\Code\\qinglong-captions\\audio_separator\\bdsqlsz_BS-ROFO-SW-Fixed-ONNX\\model.onnx", | |
| "input_name": "stft_features", | |
| "output_name": "mask", | |
| "input_layout": [ | |
| "batch", | |
| "frames", | |
| "freq_channels_complex" | |
| ], | |
| "output_layout": [ | |
| "batch", | |
| "stems", | |
| "freq_channels", | |
| "frames", | |
| "complex" | |
| ], | |
| "sample_rate": 44100, | |
| "chunk_size": 563200, | |
| "num_channels": 2, | |
| "num_stems": 6, | |
| "stem_names": [ | |
| "bass", | |
| "drums", | |
| "other", | |
| "vocals", | |
| "guitar", | |
| "piano" | |
| ], | |
| "stft": { | |
| "n_fft": 2048, | |
| "hop_length": 512, | |
| "win_length": 2048, | |
| "normalized": false | |
| }, | |
| "export_notes": { | |
| "flash_attn_disabled_for_export": true, | |
| "graph_exposes_mask_head_only": true, | |
| "requires_external_stft_preprocess": true, | |
| "requires_external_istft_postprocess": true | |
| } | |
| } |