Spaces:
Paused
Paused
Update modules/masking_module.py
Browse files
modules/masking_module.py
CHANGED
|
@@ -15,7 +15,7 @@ device = torch.device('cuda')
|
|
| 15 |
model_id = 'microsoft/Florence-2-large'
|
| 16 |
|
| 17 |
models_dict = {
|
| 18 |
-
'Florence_model':AutoModelForCausalLM.from_pretrained(model_id
|
| 19 |
'Florence_processor':AutoProcessor.from_pretrained(model_id, trust_remote_code=True),
|
| 20 |
}
|
| 21 |
|
|
|
|
| 15 |
model_id = 'microsoft/Florence-2-large'
|
| 16 |
|
| 17 |
models_dict = {
|
| 18 |
+
'Florence_model':AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).to("cuda").eval(),
|
| 19 |
'Florence_processor':AutoProcessor.from_pretrained(model_id, trust_remote_code=True),
|
| 20 |
}
|
| 21 |
|