Update my_model/config/captioning_config.py
Browse files
my_model/config/captioning_config.py
CHANGED
@@ -1,15 +1,28 @@
|
|
1 |
import torch
|
2 |
|
3 |
# Configuration parameters
|
|
|
4 |
MODEL_TYPE = "i_blip"
|
5 |
-
|
6 |
MAX_IMAGE_SIZE = 1024
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
9 |
MODEL_PATH = "m7mdal7aj/captioner"
|
|
|
10 |
LOAD_IN_8BIT = False
|
|
|
11 |
LOAD_IN_4BIT = True
|
|
|
12 |
TORCH_DTYPE = torch.float16
|
|
|
13 |
DEVICE_MAP = "auto"
|
|
|
14 |
LOW_CPU_MEM_USAGE = True
|
|
|
15 |
SKIP_SPECIAL_TOKENS = True
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
|
3 |
# Configuration parameters
|
4 |
+
|
5 |
MODEL_TYPE = "i_blip"
|
6 |
+
|
7 |
MAX_IMAGE_SIZE = 1024
|
8 |
+
|
9 |
+
MIN_LENGTH = 150
|
10 |
+
|
11 |
+
MAX_NEW_TOKENS = 400
|
12 |
+
|
13 |
MODEL_PATH = "m7mdal7aj/captioner"
|
14 |
+
|
15 |
LOAD_IN_8BIT = False
|
16 |
+
|
17 |
LOAD_IN_4BIT = True
|
18 |
+
|
19 |
TORCH_DTYPE = torch.float16
|
20 |
+
|
21 |
DEVICE_MAP = "auto"
|
22 |
+
|
23 |
LOW_CPU_MEM_USAGE = True
|
24 |
+
|
25 |
SKIP_SPECIAL_TOKENS = True
|
26 |
+
|
27 |
+
|
28 |
+
PROMPT = 'Provide a comprehensive and detailed description of the following image. Focus on identifying and describing every element in the scene, including all objects, their positions, and any actions or interactions taking place. Pay special attention to the positioning of limbs and hands, and any objects they might be holding or interacting with. Describe colors, textures, setting, atmosphere, mood, and any indicators of the time of day, such as the quality of light, shadows, or the position of the sun or moon. Ensure to capture both the obvious and subtle elements for a complete understanding of the image.'
|