use smaller model to improve CUDA usage

This commit is contained in:
SkalskiP
2024-08-01 14:58:49 +02:00
parent 576e22aaff
commit 5ae5bcae46
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ from PIL import Image
from transformers import AutoModelForCausalLM, AutoProcessor
from transformers.dynamic_module_utils import get_imports
FLORENCE_CHECKPOINT = "microsoft/Florence-2-large"
FLORENCE_CHECKPOINT = "microsoft/Florence-2-base"
FLORENCE_OBJECT_DETECTION_TASK = '<OD>'
FLORENCE_DETAILED_CAPTION_TASK = '<MORE_DETAILED_CAPTION>'
FLORENCE_CAPTION_TO_PHRASE_GROUNDING_TASK = '<CAPTION_TO_PHRASE_GROUNDING>'