Upload 3 files
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ language:
|
|
| 5 |
---
|
| 6 |
# Image Captioning App
|
| 7 |
|
| 8 |
-
This is a mod of [Wi-zz/joy-caption-pre-alpha](https://huggingface.co/Wi-zz/joy-caption-pre-alpha) and [fancyfeast/joy-caption-alpha-two](https://huggingface.co/spaces/fancyfeast/joy-caption-alpha-two). Thanks to [dominic1021](https://huggingface.co/dominic1021), [IceHibiki](https://huggingface.co/IceHibiki), [BullseyeMxP](https://huggingface.co/BullseyeMxP).
|
| 9 |
|
| 10 |
# Notice: I will contribute to Wi-zz after shaping the code.
|
| 11 |
|
|
|
|
| 5 |
---
|
| 6 |
# Image Captioning App
|
| 7 |
|
| 8 |
+
This is a mod of [Wi-zz/joy-caption-pre-alpha](https://huggingface.co/Wi-zz/joy-caption-pre-alpha) and [fancyfeast/joy-caption-alpha-two](https://huggingface.co/spaces/fancyfeast/joy-caption-alpha-two). Thanks to [dominic1021](https://huggingface.co/dominic1021), [IceHibiki](https://huggingface.co/IceHibiki), [BullseyeMxP](https://huggingface.co/BullseyeMxP), [Wakeme](https://huggingface.co/Wakeme).
|
| 9 |
|
| 10 |
# Notice: I will contribute to Wi-zz after shaping the code.
|
| 11 |
|
app.py
CHANGED
|
@@ -21,9 +21,10 @@ IS_COLAB = 'google.colab' in sys.modules
|
|
| 21 |
IMAGE_EXTENSIONS = ('.jpg', '.jpeg', '.png', '.bmp', '.webp')
|
| 22 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
| 23 |
BASE_DIR = Path(__file__).resolve().parent # Define the base directory
|
| 24 |
-
CHECKPOINT_PATH = BASE_DIR / Path("cgrkzexw-599808")
|
| 25 |
CLIP_PATH = "google/siglip-so400m-patch14-384"
|
| 26 |
DEFAULT_MODEL_PATH = "unsloth/Meta-Llama-3.1-8B-bnb-4bit"
|
|
|
|
| 27 |
#DEFAULT_MODEL_PATH = "Orenguteng/Llama-3.1-8B-Lexi-Uncensored-V2" # Works better but full weight.
|
| 28 |
LORA_PATH = CHECKPOINT_PATH / "text_model"
|
| 29 |
CAPTION_TYPE_MAP = {
|
|
|
|
| 21 |
IMAGE_EXTENSIONS = ('.jpg', '.jpeg', '.png', '.bmp', '.webp')
|
| 22 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
| 23 |
BASE_DIR = Path(__file__).resolve().parent # Define the base directory
|
| 24 |
+
CHECKPOINT_PATH = BASE_DIR / Path("cgrkzexw-599808")
|
| 25 |
CLIP_PATH = "google/siglip-so400m-patch14-384"
|
| 26 |
DEFAULT_MODEL_PATH = "unsloth/Meta-Llama-3.1-8B-bnb-4bit"
|
| 27 |
+
#DEFAULT_MODEL_PATH = "unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit" # Default in Alpha One Two.
|
| 28 |
#DEFAULT_MODEL_PATH = "Orenguteng/Llama-3.1-8B-Lexi-Uncensored-V2" # Works better but full weight.
|
| 29 |
LORA_PATH = CHECKPOINT_PATH / "text_model"
|
| 30 |
CAPTION_TYPE_MAP = {
|