Skip to content

Commit 00dc2cb

Browse files
committed
Initial commit
0 parents  commit 00dc2cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+10879
-0
lines changed

.github/workflows/test_install.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test Installation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test-installation:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
27+
pip install -e .
28+
29+
- name: Test import
30+
run: |
31+
python -c "from segment_anything_fast import dynamic_quant, sam_model_registry"

0 commit comments

Comments
 (0)