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:
# Load model directly from transformers import SpikeConvFrontend model = SpikeConvFrontend.from_pretrained("BAAI/Brainmu-SpikeCamera", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download src/scripts/test.sh from BAAI/Brainmu-SpikeCamera: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/BAAI/Brainmu-SpikeCamera/resolve/main/src/scripts/test.sh
- Command line
-
hf download hf://BAAI/Brainmu-SpikeCamera/src/scripts/test.sh
-
curl -L -o test.sh https://huggingface.co/BAAI/Brainmu-SpikeCamera/resolve/main/src/scripts/test.sh
435 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| ENV="${BRAINMU_ENV:-$PWD/.venv}" | |
| [[ -x "$ENV/bin/python" ]] || { echo "Run bash scripts/setup_uv.sh first, or set BRAINMU_ENV to an existing compatible environment."; exit 2; } | |
| export CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES:-0}" | |
| export TOKENIZERS_PARALLELISM=false | |
| exec uv run --no-project --python "$ENV/bin/python" python scripts/infer.py --expected-count 1000 "$@" | |