Update README.md
Browse files
README.md
CHANGED
@@ -118,8 +118,8 @@ device = torch.device("cuda:1" if torch.cuda.is_available() else "CPU")
|
|
118 |
|
119 |
# load model
|
120 |
# 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"
|
121 |
-
clip_tokenizer = AutoTokenizer.from_pretrained("
|
122 |
-
model = AutoModel.from_pretrained("
|
123 |
model.model.text_encoder.tokenizer = clip_tokenizer
|
124 |
model.train()
|
125 |
model.to(device)
|
|
|
118 |
|
119 |
# load model
|
120 |
# 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"
|
121 |
+
clip_tokenizer = AutoTokenizer.from_pretrained("yuxindu/segvol")
|
122 |
+
model = AutoModel.from_pretrained("yuxindu/segvol", trust_remote_code=True, test_mode=False)
|
123 |
model.model.text_encoder.tokenizer = clip_tokenizer
|
124 |
model.train()
|
125 |
model.to(device)
|