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 src/.github/workflows/tests.yml from BAAI/Brainmu-SpikeCamera: direct link, hf CLI and curl.
- Browser
- Download file 563 Bytes
-
https://huggingface.co/BAAI/Brainmu-SpikeCamera/resolve/main/src/.github/workflows/tests.yml
- Command line
-
hf download hf://BAAI/Brainmu-SpikeCamera/src/.github/workflows/tests.yml
-
curl -L -o tests.yml https://huggingface.co/BAAI/Brainmu-SpikeCamera/resolve/main/src/.github/workflows/tests.yml
563 Bytes
| name: CPU tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu | |
| - run: pip install numpy==1.26.4 opencv-python-headless==4.11.0.86 Pillow==11.3.0 accelerate==1.14.0 safetensors==0.4.5 | |
| - run: python -m compileall -q src/code src/ui src/scripts src/vendor | |
| - run: python -m unittest discover -s src/tests -v | |