Update README.md
Browse files
README.md
CHANGED
@@ -42,8 +42,9 @@ device = torch.device("cuda:1" if torch.cuda.is_available() else "cpu")
|
|
42 |
device = 'cpu'
|
43 |
|
44 |
# load model
|
45 |
-
|
46 |
-
|
|
|
47 |
model.model.text_encoder.tokenizer = clip_tokenizer
|
48 |
model.eval()
|
49 |
model.to(device)
|
|
|
42 |
device = 'cpu'
|
43 |
|
44 |
# load model
|
45 |
+
# If you cannot connect to huggingface.co, you can download the repo and set from_pretrained path as the loacl dir path, replacing "yuxindu/segvol"
|
46 |
+
clip_tokenizer = AutoTokenizer.from_pretrained("yuxindu/segvol")
|
47 |
+
model = AutoModel.from_pretrained("yuxindu/segvol", trust_remote_code=True, test_mode=True)
|
48 |
model.model.text_encoder.tokenizer = clip_tokenizer
|
49 |
model.eval()
|
50 |
model.to(device)
|