Spaces:
Runtime error
Runtime error
supersolar
commited on
Update utils/florence.py
Browse files- utils/florence.py +2 -2
utils/florence.py
CHANGED
@@ -7,8 +7,8 @@ from PIL import Image
|
|
7 |
from transformers import AutoModelForCausalLM, AutoProcessor
|
8 |
from transformers.dynamic_module_utils import get_imports
|
9 |
|
10 |
-
FLORENCE_CHECKPOINT = "microsoft/Florence-2-
|
11 |
-
FLORENCE_CHECKPOINT = "microsoft/Florence-2-large-ft"
|
12 |
FLORENCE_OBJECT_DETECTION_TASK = '<OD>'
|
13 |
FLORENCE_DETAILED_CAPTION_TASK = '<MORE_DETAILED_CAPTION>'
|
14 |
FLORENCE_CAPTION_TO_PHRASE_GROUNDING_TASK = '<CAPTION_TO_PHRASE_GROUNDING>'
|
|
|
7 |
from transformers import AutoModelForCausalLM, AutoProcessor
|
8 |
from transformers.dynamic_module_utils import get_imports
|
9 |
|
10 |
+
FLORENCE_CHECKPOINT = "microsoft/Florence-2-large"
|
11 |
+
#FLORENCE_CHECKPOINT = "microsoft/Florence-2-large-ft"
|
12 |
FLORENCE_OBJECT_DETECTION_TASK = '<OD>'
|
13 |
FLORENCE_DETAILED_CAPTION_TASK = '<MORE_DETAILED_CAPTION>'
|
14 |
FLORENCE_CAPTION_TO_PHRASE_GROUNDING_TASK = '<CAPTION_TO_PHRASE_GROUNDING>'
|