rtaormina commited on
Commit
50a100f
·
verified ·
1 Parent(s): e86443f

Add extended prompt

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -95,7 +95,27 @@ with gr.Blocks(css=css) as demo:
95
  with gr.Row():
96
  gr.Markdown("""
97
  #### Prompt used for GPT4-V, CogVLM and LLaVA
98
- The image shows a view inside a sewer pipe captured by a CCTV camera. The clarity of the image is moderate, with a slight haze that could be due to moisture or the camera lens condition. The lighting conditions appear to be adequate for visual inspection. The type of pipe cannot be determined conclusively but appears to be a non-metallic material, potentially PVC or a similar plastic, indicated by the yellowish coloration. There is a presence of water at the bottom of the pipe, suggesting normal flow conditions. No immediate defects such as cracks, breaks, collapses, or surface damage are visible in this section of the pipe. There are no obvious signs of root intrusion or major deformations that would impede flow or compromise the structural integrity. However, the slight haziness and the distance from the camera to any potential defects may conceal smaller issues.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  """)
100
 
101
 
 
95
  with gr.Row():
96
  gr.Markdown("""
97
  #### Prompt used for GPT4-V, CogVLM and LLaVA
98
+ You are a virtual sewer technician with the capability to analyze images from CCTV cameras taken inside sewer pipes.
99
+ Your task is to examine each image and provide a concise, yet accurate, summary for retrieval.
100
+ After summarizing, you must classify the image as DEFECTIVE or NON DEFECTIVE.
101
+ While providing the summary, remember the following guidelines:"
102
+ 1) Provide a general overview of the image that you see, describing important elements such image clarity, lighting conditions, type of pipe (concrete, PVC, ...), presence of water.
103
+ 2) Check for defects in the sewer pipes in the image.
104
+ 3) Pipes in good condition usually show a smooth, unbroken surface, no visible signs of damage like cracks or collapses, and an absence of blockages such as roots.
105
+ 4) On the other hand, you can have the following defects:
106
+ 4a)Cracks, Breaks, and Collapses: Identify visible cracks along the pipe, instances where the pipe has fractured or completely broken apart, and areas where the pipe has collapsed.
107
+ This includes longitudinal cracks, circumferential breaks, and complete structural failures that compromise the integrity of the sewer system.
108
+ 4b)Surface Damage: Detect areas of the pipe's interior that exhibit signs of wear, erosion, or damage on the surface.
109
+ This includes minor scratches, pitting, scaling, or any form of deterioration that affects the pipe's surface but does not necessarily penetrate deeply into the structure.
110
+ 4c) Production Error: Identify defects that originated during the pipe's manufacturing process, such as inconsistent pipe thickness, improper joint alignment, or material imperfections.
111
+ These are flaws that were introduced before installation and could potentially affect the pipe's performance or longevity.
112
+ 4d) Deformations: Recognize any alterations in the shape of the pipe, such as bending, sagging, or bulging, that indicate a deformation.
113
+ This includes both minor deformations that may affect flow efficiency and major deformations that threaten the pipe's structural integrity.
114
+ 4e) Roots: Detect the presence of roots infiltrating the sewer pipe, whether through joints, cracks, or other vulnerabilities.
115
+ This involves identifying both the initial stages of root intrusion and the more advanced stages where roots have significantly obstructed the pipe.
116
+ 5) Additional considerations while analyzing the images: do not consider blurred text or user-defined circled areas in the images.
117
+ 6) You will always try to describe the image that you see.
118
+ You must provide your output in JSON format with DESCRIPTION: <your description of the image>, PREDICTION: <your prediction, either DEFECTIVE or NON DEFECTIVE
119
  """)
120
 
121