Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def load_clip_model():
|
|
18 |
tokenizer = open_clip.get_tokenizer('hf-hub:Marqo/marqo-fashionSigLIP')
|
19 |
|
20 |
# ํ์ธํ๋ํ ๋ชจ๋ธ์ state_dict ๋ถ๋ฌ์ค๊ธฐ
|
21 |
-
state_dict = torch.load('./accessory_clip.pt', map_location=torch.device('cpu'))
|
22 |
-
model.load_state_dict(state_dict) # ๋ชจ๋ธ์ state_dict ์ ์ฉ
|
23 |
|
24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
model.to(device)
|
|
|
18 |
tokenizer = open_clip.get_tokenizer('hf-hub:Marqo/marqo-fashionSigLIP')
|
19 |
|
20 |
# ํ์ธํ๋ํ ๋ชจ๋ธ์ state_dict ๋ถ๋ฌ์ค๊ธฐ
|
21 |
+
#state_dict = torch.load('./accessory_clip.pt', map_location=torch.device('cpu'))
|
22 |
+
#model.load_state_dict(state_dict) # ๋ชจ๋ธ์ state_dict ์ ์ฉ
|
23 |
|
24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
model.to(device)
|