yuxindu commited on
Commit
994e313
1 Parent(s): 2568f65

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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("./segvol")
122
- model = AutoModel.from_pretrained("./segvol", trust_remote_code=True, test_mode=False)
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)