Skip to content

Commit

Permalink
changed model to MiaoshouAI/Florence-2-base-PromptGen-v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
regiellis committed Nov 7, 2024
1 parent 77fdc05 commit 8193d48
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## All notable changes to this project will be documented in this file


## [1.5.0] - 2024-10-07
- **Model Update**: replaced Florence with a new model, MiaoshouAI/Florence-2-base-PromptGen-v2.0. This model is fine-tune of Florence2

## [1.4.1] - 2024-10-07
- **Hotfix**: Update caption mode for JoyCaption, fix some typoes

Expand Down
2 changes: 1 addition & 1 deletion ecko_cli/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.1"
__version__ = "1.5.0"
2 changes: 1 addition & 1 deletion ecko_cli/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
smart_resize,
)

CAPTION_MODEL = "microsoft/Florence-2-large"
CAPTION_MODEL = "MiaoshouAI/Florence-2-base-PromptGen-v2.0" #"microsoft/Florence-2-large" #"MiaoshouAI/Florence-2-large-PromptGen-v2.0"
JOYCAP_MODEL = "fancyfeast/llama-joycaption-alpha-two-hf-llava"
IMAGE_SIZE_JOYCAP = (384, 384)

Expand Down
10 changes: 10 additions & 0 deletions ecko_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,13 @@ def install_flash_attention():
"pip install flash-attn --no-build-isolation",
shell=True,
)

@tools_cli.command()
def install_models():
"""
Install required models
"""
subprocess.run(
"hf download MiaoshouAI/Florence-2-base-PromptGen-v2.0",
shell=True,
)

0 comments on commit 8193d48

Please sign in to comment.