We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5aecd commit 1162d1bCopy full SHA for 1162d1b
.github/workflows/test_install.yml
@@ -0,0 +1,31 @@
1
+name: Test Installation
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
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
31
+ python -c "from segment_anything_fast import dynamic_quant, sam_model_registry"
0 commit comments