yuxindu commited on
Commit
c87ba1c
·
verified ·
1 Parent(s): 48504ce

Update README.md

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