danielritchie commited on
Commit
b6789a6
·
1 Parent(s): 9191c48

raw torch load

Browse files
Files changed (1) hide show
  1. utils/color_model.py +9 -2
utils/color_model.py CHANGED
@@ -1,7 +1,14 @@
1
  import torch
2
- from transformers import AutoModel
3
 
4
- model = AutoModel.from_pretrained("danielritchie/vibe-color-model")
 
 
 
 
 
 
 
5
  model.eval()
6
 
7
 
 
1
  import torch
2
+ from huggingface_hub import hf_hub_download
3
 
4
+ # Download model file from HF
5
+ model_path = hf_hub_download(
6
+ repo_id="danielritchie/vibe-color-model",
7
+ filename="pytorch_model.bin"
8
+ )
9
+
10
+ # Load full torch model
11
+ model = torch.load(model_path, map_location=torch.device("cpu"))
12
  model.eval()
13
 
14