syntheticbot commited on
Commit
54c8e2c
·
verified ·
1 Parent(s): 35d9100

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -7
README.md CHANGED
@@ -117,13 +117,7 @@ NUM_LABELS = { 'age': len(age_labels), 'gender': len(gender_labels), 'race': len
117
  processor = CLIPImageProcessor.from_pretrained(MODEL_PATH)
118
  model = MultiTaskClipVisionModel(num_labels=NUM_LABELS)
119
 
120
- # Load the fine-tuned weights from the hub
121
- model.load_state_dict(
122
- torch.hub.load_state_dict_from_url(
123
- f"https://huggingface.co/{MODEL_PATH}/resolve/main/pytorch_model.bin",
124
- map_location=DEVICE
125
- )
126
- )
127
  model.to(DEVICE)
128
  model.eval()
129
 
 
117
  processor = CLIPImageProcessor.from_pretrained(MODEL_PATH)
118
  model = MultiTaskClipVisionModel(num_labels=NUM_LABELS)
119
 
120
+
 
 
 
 
 
 
121
  model.to(DEVICE)
122
  model.eval()
123