roboflow / roboflow/inference

CSV Sink based workflow templates do not seem to work

Open
#603 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.5k
Forks
319
Avg merge
1d 14h
Merged PRs (30d)
133

Description

Search before asking
  • I have searched the Inference issues and found no similar feature requests.
Question

Amazing job on the workflows.

Just a small question,
CSV Sink based workflow templates do not seem to work.
In this page https://roboflow.com/workflows/templates and here https://roboflow.com/workflows/build,
there are pre created templates which have CSV Sink as output blocks.
But when trying to run the preview I get errors. Are CSV Sinks supposed to work?

Screenshot 2024-08-22 at 3 56 04 PM

Screenshot 2024-08-22 at 3 56 43 PM

Screenshot 2024-08-22 at 3 56 52 PM

{
  "error": "Could not parse workflow definition. Details provided in inner error.",
  "inner_error": "1 validation error for WorkflowSpecificationV1\nsteps.1\n 
  
   Input tag 'CSVSink' found using 'type' does not match any of the expected 
   tags: 'roboflow_core/segment_anything@v1', 'roboflow_core/detections_consensus@v1',
   'DetectionsConsensus', 'roboflow_core/clip_comparison@v1', 'ClipComparison', 'roboflow_core/lmm@v1',
    'LMM', 'roboflow_core/lmm_for_classification@v1', 'LMMForClassification', 'roboflow_core/open_ai@v1',
     'OpenAI', 'roboflow_core/cog_vlm@v1', 'CogVLM', 'roboflow_core/ocr_model@v1', 'OCRModel', 
     'roboflow_core/yolo_world_model@v1', 'YoloWorldModel', 'YoloWorld', 'roboflow_core/roboflow_instance_segmentation_model@v1',
      'RoboflowInstanceSegmentationModel', 'InstanceSegmentationModel', 'roboflow_core/roboflow_keypoint_detection_model@v1', 
      'RoboflowKeypointDetectionModel', 'KeypointsDetectionModel', 'roboflow_core/roboflow_classification_model@v1',
       'RoboflowClassificationModel', 'ClassificationModel', 'roboflow_core/roboflow_multi_label_classification_model@v1', 
       'RoboflowMultiLabelClassificationModel', 'MultiLabelClassificationModel', 'roboflow_core/roboflow_object_detection_model@v1', 
       'RoboflowObjectDetectionModel', 'ObjectDetectionModel', 'roboflow_core/barcode_detector@v1', 'BarcodeDetector', 'BarcodeDetection', 
       'roboflow_core/qr_code_detector@v1', 'QRCodeDetector', 'QRCodeDetection', 'roboflow_core/absolute_static_crop@v1', 
       'AbsoluteStaticCrop', 'roboflow_core/dynamic_crop@v1', 'DynamicCrop', 'Crop', 'roboflow_core/detections_filter@v1',
        'DetectionsFilter', 'roboflow_core/detection_offset@v1', 'DetectionOffset', 'roboflow_core/relative_statoic_crop@v1',
         'RelativeStaticCrop', 'roboflow_core/detections_transformation@v1', 'DetectionsTransformation', 'roboflow_core/roboflow_dataset_upload@v1',
          'RoboflowDatasetUpload', 'roboflow_core/continue_if@v1', 'ContinueIf', 'roboflow_core/perspective_correction@v1', 'PerspectiveCorrection', 
          'roboflow_core/dynamic_zone@v1', 'DynamicZone', 'roboflow_core/detections_classes_replacement@v1', 'DetectionsClassesReplacement', 
          'roboflow_core/expression@v1', 'Expression', 'roboflow_core/property_definition@v1', 'PropertyDefinition', 'PropertyExtraction', 
          'roboflow_core/dimension_collapse@v1', 'DimensionCollapse', 'roboflow_core/first_non_empty_or_default@v1', 'FirstNonEmptyOrDefault',
           'roboflow_core/background_color_visualization@v1', 'BackgroundColorVisualization', 'roboflow_core/blur_visualization@v1', 'BlurVisualization', 'roboflow_core/bounding_box_visualization@v1', 'BoundingBoxVisualization', 'roboflow_core/circle_visualization@v1', 'CircleVisualization', 'roboflow_core/color_visualization@v1', 'ColorVisualization', 'roboflow_core/corner_visualization@v1', 'CornerVisualization', 'roboflow_core/crop_visualization@v1', 'CropVisualization', 'roboflow_core/dot_visualization@v1', 'DotVisualization', 'roboflow_core/ellipse_visualization@v1', 'EllipseVisualization', 'roboflow_core/halo_visualization@v1', 'HaloVisualization', 'roboflow_core/label_visualization@v1', 'LabelVisualization', 'roboflow_core/mask_visualization@v1', 'MaskVisualization', 'roboflow_core/pixelate_visualization@v1', 'PixelateVisualization', 'roboflow_core/polygon_visualization@v1', 'PolygonVisualization', 'roboflow_core/triangle_visualization@v1', 'TriangleVisualization', 'roboflow_core/roboflow_custom_metadata@v1', 'RoboflowCustomMetadata', 'roboflow_core/detections_stitch@v1', 'roboflow_core/image_slicer@v1', 'roboflow_core/dominant_color@v1', 'roboflow_core/pixel_color_count@v1', 'roboflow_core/sift_comparison@v1', 'roboflow_core/sift@v1', 'roboflow_core/template_matching@v1' [type=union_tag_invalid, input_value={'name': 'csv1', 'type': ...image': '$inputs.image'}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.8/v/union_tag_invalid"
}
Additional

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure from the CSV Sink templates on the Workflows templates or build pages using the preview action. Start with the reported workflow-definition validation error and compare the CSV Sink type with the accepted workflow step types. Done means the affected templates load and run in preview without the CSVSink validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.