2. Moved configuration_florence2.py, modeling_florence2.py1 and processing_florence2.py to root of repo to match microsoft/Florence-2-base
3. Updated processing_florence2.py with import of GenerationMixin from transformers.generation and update to class definition Florence2LanguageForConditionalGeneration to also include GenerationMixin
Update README.md
Steve Goodman
Verified signature
60d0acc
Update README.md
Steve Goodman
Verified signature
f9170d7
# Florence-2-base-PromptGen v1.5 (with config and code updates)
This is [MiaoshouAI/Florence-2-base-PromptGen-v1.5](https://huggingface.co/MiaoshouAI/Florence-2-base-PromptGen-v1.5) which retains its existing features, but with changes to supporting configuration and code to ensure drop-in replacement for [Microsoft Florence-2 Model Base](https://huggingface.co/microsoft/Florence-2-base) the when using Transformers library in Python.
1) The config.json has been updated with an auto_map property and key-values added matching the Florence-2-base [resolving this issue](https://huggingface.co/MiaoshouAI/Florence-2-base-PromptGen-v1.5/discussions/4).
2) Python code that is located in the root of the repo in Florence-2-base but in florence2_base_ft in [MiaoshouAI/Florence-2-base-PromptGen-v1.5](https://huggingface.co/MiaoshouAI/Florence-2-base-PromptGen-v1.5) has been moved to the root of the repo as this prevented trust_remove_code=True in the AutoProcessor.from_pretrained from loading t…