Skip to content

Commit

Permalink
Accept any geometry class
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov committed Sep 27, 2024
1 parent 2607ed5 commit ea9d325
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/functions.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import src.globals as g
import supervisely as sly
from supervisely.nn import TaskType
from supervisely.nn.inference import SessionJSON

import src.globals as g

geometry_to_task_type = {
TaskType.OBJECT_DETECTION: [sly.Rectangle],
TaskType.INSTANCE_SEGMENTATION: [sly.Bitmap, sly.Polygon],
TaskType.OBJECT_DETECTION: [sly.Rectangle, sly.AnyGeometry],
TaskType.INSTANCE_SEGMENTATION: [sly.Bitmap, sly.Polygon, sly.AnyGeometry],
}


Expand Down

0 comments on commit ea9d325

Please sign in to comment.