-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from opendatalab/schema-dsdl
Schema dsdl
- Loading branch information
Showing
156 changed files
with
7,151 additions
and
54,918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by the dsdl parser. DO NOT EDIT! | ||
from dsdl.geometry import ClassDomain | ||
from dsdl.fields import * | ||
|
||
|
||
class LocalObjectEntry(Struct): | ||
__params__ = ['cdom'] | ||
__fields__ = { | ||
"bbox": BBox(), | ||
"label": Label(dom="$cdom"), | ||
"is_crowd": Bool(), | ||
} | ||
__optional__ = ['label'] | ||
|
||
|
||
ClassDomain( | ||
name = "COCOClassDom", | ||
classes = ["person","bicycle","car","motorcycle","airplane","bus","train","truck","boat","traffic light","fire hydrant","stop sign","parking meter","bench","bird","cat","dog","horse","sheep","cow","elephant","bear","zebra","giraffe","backpack","umbrella","handbag","tie","suitcase","frisbee","skis","snowboard","sports ball","kite","baseball bat","baseball glove","skateboard","surfboard","tennis racket","bottle","wine glass","cup","fork","knife","spoon","bowl","banana","apple","sandwich","orange","broccoli","carrot","hot dog","pizza","donut","cake","chair","couch","potted plant","bed","dining table","toilet","tv","laptop","mouse","remote","keyboard","cell phone","microwave","oven","toaster","sink","refrigerator","book","clock","vase","scissors","teddy bear","hair drier","toothbrush",], | ||
) | ||
|
||
|
||
class ObjectDetectionSample(Struct): | ||
__params__ = ['cdom'] | ||
__fields__ = { | ||
"image": Image(), | ||
"objects": List(etype=LocalObjectEntry(cdom="$cdom")), | ||
} | ||
|
Oops, something went wrong.