ERROR: Invalid task format for view ID 'image' with image.test and simple solution

running prodigy image.test image_objects tiny-yolo /tmp/my_images/ results in the following error:

ERROR: Invalid task format for view ID 'image

followed by several lines similar to (95.39274597167969, 124.06005859375) is not of type 'array' [spans -> 0 -> points -> 0], then a dump of the image

This is easily solved by editing image.py in prodigy/recipes, replacing the lines

rel_points = [(x - w/2, y - h/2), (x - w/2, y + h/2),
              (x + w/2, y + h/2), (x + w/2, y - h/2)]

in get_span() with

rel_points = [[x - w/2, y - h/2], [x - w/2, y + h/2],
              [x + w/2, y + h/2], [x + w/2, y - h/2]]

Thanks for the report and sorry about that! The recipe was written before we added the slightly strict stream validation, so it looks like we forgot to update that bit. I already fixed it and the fix will be shipped with the next release :+1: