padmanabhbosamia commited on
Commit
6d11b90
·
verified ·
1 Parent(s): 029c2c9

Uploaded Prompt Template

Browse files
Files changed (1) hide show
  1. prompt_templates.py +60 -0
prompt_templates.py ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Unified prompt templates for all tasks
2
+ PROMPT_TEMPLATES = {
3
+ "basic": [
4
+ "Describe this image in detail.",
5
+ "What do you see in this image?",
6
+ "Analyze the contents of this image.",
7
+ "Explain what's happening in this image.",
8
+ "Provide a detailed description of this image."
9
+ ],
10
+
11
+ "analytical": [
12
+ "Describe what you see in this image, considering its visual characteristics.",
13
+ "Based on the image analysis, what object or subject is shown?",
14
+ "How do the color and brightness patterns relate to the content?",
15
+ "Analyze the image features and explain what they reveal about the subject.",
16
+ "Describe how the regional brightness differences inform the image content.",
17
+ "What patterns or structures can you identify from the edge density?",
18
+ "How do the dominant colors help identify the subject?",
19
+ "Explain how the brightness distribution relates to the image composition."
20
+ ],
21
+
22
+ "technical": [
23
+ "Analyze the color distribution and its impact on the image content.",
24
+ "How do the edge patterns contribute to the object recognition?",
25
+ "Describe the relationship between brightness distribution and subject matter.",
26
+ "What can you infer from the regional brightness variations?",
27
+ "How do the dominant colors influence the perception of the subject?"
28
+ ],
29
+
30
+ "comparative": [
31
+ "Compare the visual characteristics of this image with typical examples of its class.",
32
+ "How does this image's color distribution differ from other images in its category?",
33
+ "What makes this particular instance unique within its class?",
34
+ "Analyze how this image's features align with or deviate from its class characteristics."
35
+ ],
36
+
37
+ "focused": [
38
+ "What is the exact color and appearance of this {class_name}?",
39
+ "What specific pose or position is this {class_name} in?",
40
+ "What distinguishing features can you see clearly?",
41
+ "How does this {class_name} stand out from its background?",
42
+ "What makes this particular {class_name} unique or interesting?"
43
+ ]
44
+ }
45
+
46
+ # Response templates for training
47
+ RESPONSE_TEMPLATES = {
48
+ "basic": "This image shows a {class_name}. It is a clear and detailed view, showing distinctive features typical of a {class_name}.",
49
+ "detailed": "This image depicts a {class_name}. The visual characteristics include {features}. The color distribution shows {color_info}, and the edge patterns suggest {edge_info}.",
50
+ "analytical": "The image presents a {class_name}. Analysis of its visual properties reveals: {analysis}. These characteristics are consistent with typical {class_name} features.",
51
+ "focused": "Looking at this {class_name}, I can see the following specific details: {details}"
52
+ }
53
+
54
+ # Image analysis templates
55
+ ANALYSIS_TEMPLATES = {
56
+ "color": "The image has average RGB values of R:{r}, G:{g}, B:{b} with variations of ±{r_std}, ±{g_std}, ±{b_std}.",
57
+ "brightness": "The overall brightness is {brightness}/255 with a contrast level of {contrast}.",
58
+ "edges": "Edge density analysis shows {edge_density}% of pixels forming edges.",
59
+ "regions": "Regional brightness varies with top: {top}, bottom: {bottom}, left: {left}, right: {right}."
60
+ }