Closed lewisd1996 closed 1 year ago
The size of the image is required for the conversion to COCO, which you can either set in the config https://github.com/scalabel/scalabel/blob/master/scalabel/label/typing.py#L172 (same for all frames) or at each frame https://github.com/scalabel/scalabel/blob/master/scalabel/label/typing.py#L135.
Makes sense thank you @thomasehuang
Is there any sort of tools or methods that will resize all the images for me within scalabel or is this something that should have been done before I tagged my images?
Apologies, still a beginner
You don't need to resize the images, you just need to determine the size of your images and set that in the file. For example, if your image has height 720 pixels and width 1280 pixels, you can add ImageSize(height=720, width=1280)
to the config. Something like:
"config": {
"attributes": [],
"categories": [
{
"name": "card"
}
],
"imageSize": {"height": 720, "width": 1280}
}
This is needed since the COCO format needs the image dimensions in the annotations file. Hope that makes sense.
@thomasehuang awesome makes sense, thank you!
Describe the bug When running the command, I get the following error:
Expected behavior To convert the file to COCO.
Desktop (please complete the following information):
Additional context A sample of one of my
frames
:my config: