RamAnanth1 commited on
Commit
6a4e4de
·
1 Parent(s): 113b968

Comment out some of the tools

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -849,22 +849,22 @@ class ConversationBot:
849
  Tool(name="Generate Image Condition On Canny Image", func=self.canny2image.inference,
850
  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. "
851
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description. "),
852
- Tool(name="Line Detection On Image", func=self.image2line.inference,
853
  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. "
854
  "The input to this tool should be a string, representing the image_path"),
855
- Tool(name="Generate Image Condition On Line Image", func=self.line2image.inference,
856
  description="useful when you want to generate a new real image from both the user desciption and a straight line image. like: generate a real image of a object or something from this straight line image, or generate a new real image of a object or something from this straight lines. "
857
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description. "),
858
- Tool(name="Hed Detection On Image", func=self.image2hed.inference,
859
  description="useful when you want to detect the soft hed boundary of the image. like: detect the soft hed boundary of this image, or hed boundary detection on image, or peform hed boundary detection on this image, or detect soft hed boundary image of this image. "
860
  "The input to this tool should be a string, representing the image_path"),
861
- Tool(name="Generate Image Condition On Soft Hed Boundary Image", func=self.hed2image.inference,
862
  description="useful when you want to generate a new real image from both the user desciption and a soft hed boundary image. like: generate a real image of a object or something from this soft hed boundary image, or generate a new real image of a object or something from this hed boundary. "
863
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
864
- Tool(name="Segmentation On Image", func=self.image2seg.inference,
865
  description="useful when you want to detect segmentations of the image. like: segment this image, or generate segmentations on this image, or peform segmentation on this image. "
866
  "The input to this tool should be a string, representing the image_path"),
867
- Tool(name="Generate Image Condition On Segmentations", func=self.seg2image.inference,
868
  description="useful when you want to generate a new real image from both the user desciption and segmentations. like: generate a real image of a object or something from this segmentation image, or generate a new real image of a object or something from these segmentations. "
869
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
870
  Tool(name="Predict Depth On Image", func=self.image2depth.inference,
@@ -876,19 +876,19 @@ class ConversationBot:
876
  Tool(name="Predict Normal Map On Image", func=self.image2normal.inference,
877
  description="useful when you want to detect norm map of the image. like: generate normal map from this image, or predict normal map of this image. "
878
  "The input to this tool should be a string, representing the image_path"),
879
- Tool(name="Generate Image Condition On Normal Map", func=self.normal2image.inference,
880
  description="useful when you want to generate a new real image from both the user desciption and normal map. like: generate a real image of a object or something from this normal map, or generate a new real image of a object or something from the normal map. "
881
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
882
- Tool(name="Sketch Detection On Image", func=self.image2scribble.inference,
883
  description="useful when you want to generate a scribble of the image. like: generate a scribble of this image, or generate a sketch from this image, detect the sketch from this image. "
884
  "The input to this tool should be a string, representing the image_path"),
885
- Tool(name="Generate Image Condition On Sketch Image", func=self.scribble2image.inference,
886
  description="useful when you want to generate a new real image from both the user desciption and a scribble image or a sketch image. "
887
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
888
- Tool(name="Pose Detection On Image", func=self.image2pose.inference,
889
  description="useful when you want to detect the human pose of the image. like: generate human poses of this image, or generate a pose image from this image. "
890
  "The input to this tool should be a string, representing the image_path"),
891
- Tool(name="Generate Image Condition On Pose Image", func=self.pose2image.inference,
892
  description="useful when you want to generate a new real image from both the user desciption and a human pose image. like: generate a real image of a human from this human pose image, or generate a new real image of a human from this pose. "
893
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description")]
894
  self.agent = initialize_agent(
 
849
  Tool(name="Generate Image Condition On Canny Image", func=self.canny2image.inference,
850
  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. "
851
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description. "),
852
+ #Tool(name="Line Detection On Image", func=self.image2line.inference,
853
  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. "
854
  "The input to this tool should be a string, representing the image_path"),
855
+ #Tool(name="Generate Image Condition On Line Image", func=self.line2image.inference,
856
  description="useful when you want to generate a new real image from both the user desciption and a straight line image. like: generate a real image of a object or something from this straight line image, or generate a new real image of a object or something from this straight lines. "
857
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description. "),
858
+ #Tool(name="Hed Detection On Image", func=self.image2hed.inference,
859
  description="useful when you want to detect the soft hed boundary of the image. like: detect the soft hed boundary of this image, or hed boundary detection on image, or peform hed boundary detection on this image, or detect soft hed boundary image of this image. "
860
  "The input to this tool should be a string, representing the image_path"),
861
+ #Tool(name="Generate Image Condition On Soft Hed Boundary Image", func=self.hed2image.inference,
862
  description="useful when you want to generate a new real image from both the user desciption and a soft hed boundary image. like: generate a real image of a object or something from this soft hed boundary image, or generate a new real image of a object or something from this hed boundary. "
863
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
864
+ #Tool(name="Segmentation On Image", func=self.image2seg.inference,
865
  description="useful when you want to detect segmentations of the image. like: segment this image, or generate segmentations on this image, or peform segmentation on this image. "
866
  "The input to this tool should be a string, representing the image_path"),
867
+ #Tool(name="Generate Image Condition On Segmentations", func=self.seg2image.inference,
868
  description="useful when you want to generate a new real image from both the user desciption and segmentations. like: generate a real image of a object or something from this segmentation image, or generate a new real image of a object or something from these segmentations. "
869
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
870
  Tool(name="Predict Depth On Image", func=self.image2depth.inference,
 
876
  Tool(name="Predict Normal Map On Image", func=self.image2normal.inference,
877
  description="useful when you want to detect norm map of the image. like: generate normal map from this image, or predict normal map of this image. "
878
  "The input to this tool should be a string, representing the image_path"),
879
+ #Tool(name="Generate Image Condition On Normal Map", func=self.normal2image.inference,
880
  description="useful when you want to generate a new real image from both the user desciption and normal map. like: generate a real image of a object or something from this normal map, or generate a new real image of a object or something from the normal map. "
881
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
882
+ #Tool(name="Sketch Detection On Image", func=self.image2scribble.inference,
883
  description="useful when you want to generate a scribble of the image. like: generate a scribble of this image, or generate a sketch from this image, detect the sketch from this image. "
884
  "The input to this tool should be a string, representing the image_path"),
885
+ #Tool(name="Generate Image Condition On Sketch Image", func=self.scribble2image.inference,
886
  description="useful when you want to generate a new real image from both the user desciption and a scribble image or a sketch image. "
887
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description"),
888
+ #Tool(name="Pose Detection On Image", func=self.image2pose.inference,
889
  description="useful when you want to detect the human pose of the image. like: generate human poses of this image, or generate a pose image from this image. "
890
  "The input to this tool should be a string, representing the image_path"),
891
+ #Tool(name="Generate Image Condition On Pose Image", func=self.pose2image.inference,
892
  description="useful when you want to generate a new real image from both the user desciption and a human pose image. like: generate a real image of a human from this human pose image, or generate a new real image of a human from this pose. "
893
  "The input to this tool should be a comma seperated string of two, representing the image_path and the user description")]
894
  self.agent = initialize_agent(