Instructions to use BAAI/Brainmu-SpikeCamera with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/Brainmu-SpikeCamera with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import SpikeConvFrontend model = SpikeConvFrontend.from_pretrained("BAAI/Brainmu-SpikeCamera", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from BAAI/Brainmu-SpikeCamera: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/BAAI/Brainmu-SpikeCamera/resolve/main/config.json
- Command line
-
hf download hf://BAAI/Brainmu-SpikeCamera/config.json
-
curl -L -o config.json https://huggingface.co/BAAI/Brainmu-SpikeCamera/resolve/main/config.json
1.3 kB
| { | |
| "schema_version": 1, | |
| "project_name": "Brainμ-Spike", | |
| "architecture": "SpikeConvFrontend", | |
| "input": { | |
| "frames": 41, | |
| "height": 250, | |
| "width": 400, | |
| "bitorder": "little", | |
| "flip_height": true, | |
| "dtype": "binary", | |
| "packed_bytes": 512500 | |
| }, | |
| "frontend": { | |
| "architecture": "Conv2dReLUStack", | |
| "channels": [ | |
| 41, | |
| 64, | |
| 128, | |
| 64, | |
| 16, | |
| 1 | |
| ], | |
| "kernel_size": 3, | |
| "stride": 1, | |
| "padding": 1, | |
| "activation": "relu", | |
| "output_clamp": [ | |
| 0.0, | |
| 1.0 | |
| ], | |
| "checkpoint": "model.safetensors", | |
| "checkpoint_sha256": "03b19d4112968111f5695dcef3094367917ee288dd14f8f0979ea937fd44301d", | |
| "checkpoint_format": "safetensors" | |
| }, | |
| "generation": { | |
| "backend": "BAGEL-derived Brainmu", | |
| "optional": true, | |
| "base_weights_included": false, | |
| "lora_weights_included": false, | |
| "lora_target": "generation experts (_moe_gen)", | |
| "inference": { | |
| "prompt": "Restore the clean image.", | |
| "steps": 12, | |
| "seed": 20260903, | |
| "cfg_text_scale": 4.0, | |
| "cfg_img_scale": 1.5, | |
| "cfg_interval": [ | |
| 0.4, | |
| 1.0 | |
| ], | |
| "timestep_shift": 3.0, | |
| "cfg_renorm_type": "global", | |
| "cfg_renorm_min": 0.0 | |
| } | |
| }, | |
| "architectures": [ | |
| "SpikeConvFrontend" | |
| ] | |
| } |