File size: 288 Bytes
78c1bf2
 
 
65dd0ae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
license: apache-2.0
---

## Run
Set conda env.
```
make env
conda activate sam-vit-h-encoder-torchscript
make setup
```

Load the SAM model and convert image encoder to torchscript.
```
python convert_torchscript.py
```

Check `model.pt` in `model_repository/sam_torchscript_fp32/1`.