Spaces:
Build error
Build error
RamAnanth1
commited on
Commit
·
a53508f
1
Parent(s):
0476953
test controlnet canny
Browse files
app.py
CHANGED
@@ -295,7 +295,7 @@ class ConversationBot:
|
|
295 |
self.i2t = ImageCaptioning(device="cuda:0")
|
296 |
self.t2i = T2I(device="cuda:0")
|
297 |
self.image2canny = image2canny()
|
298 |
-
|
299 |
self.BLIPVQA = BLIPVQA(device="cuda:0")
|
300 |
#self.pix2pix = Pix2Pix(device="cuda:0")
|
301 |
self.memory = ConversationBufferMemory(memory_key="chat_history", output_key='output')
|
@@ -322,9 +322,9 @@ class ConversationBot:
|
|
322 |
Tool(name="Edge Detection On Image", func=self.image2canny.inference,
|
323 |
description="useful when you want to detect the edge of the image. like: detect the edges of this image, or canny detection on image, or peform edge detection on this image, or detect the canny image of this image. "
|
324 |
"The input to this tool should be a string, representing the image_path"),
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
#Tool(name="Line Detection On Image", func=self.image2line.inference,
|
329 |
#description="useful when you want to detect the straight line of the image. like: detect the straight lines of this image, or straight line detection on image, or peform straight line detection on this image, or detect the straight line image of this image. "
|
330 |
# "The input to this tool should be a string, representing the image_path"),
|
|
|
295 |
self.i2t = ImageCaptioning(device="cuda:0")
|
296 |
self.t2i = T2I(device="cuda:0")
|
297 |
self.image2canny = image2canny()
|
298 |
+
self.canny2image = canny2image(device="cuda:0")
|
299 |
self.BLIPVQA = BLIPVQA(device="cuda:0")
|
300 |
#self.pix2pix = Pix2Pix(device="cuda:0")
|
301 |
self.memory = ConversationBufferMemory(memory_key="chat_history", output_key='output')
|
|
|
322 |
Tool(name="Edge Detection On Image", func=self.image2canny.inference,
|
323 |
description="useful when you want to detect the edge of the image. like: detect the edges of this image, or canny detection on image, or peform edge detection on this image, or detect the canny image of this image. "
|
324 |
"The input to this tool should be a string, representing the image_path"),
|
325 |
+
Tool(name="Generate Image Condition On Canny Image", func=self.canny2image.inference,
|
326 |
+
description="useful when you want to generate a new real image from both the user desciption and a canny image. like: generate a real image of a object or something from this canny image, or generate a new real image of a object or something from this edge image. "
|
327 |
+
"The input to this tool should be a comma seperated string of two, representing the image_path and the user description. "),
|
328 |
#Tool(name="Line Detection On Image", func=self.image2line.inference,
|
329 |
#description="useful when you want to detect the straight line of the image. like: detect the straight lines of this image, or straight line detection on image, or peform straight line detection on this image, or detect the straight line image of this image. "
|
330 |
# "The input to this tool should be a string, representing the image_path"),
|