openvinotoolkit / datumaro

Dataset Management Framework, a Python library and a CLI tool to build, analyze and manage Computer Vision datasets.
https://openvinotoolkit.github.io/datumaro/
MIT License
551 stars 135 forks source link

can we choose how numbers are formatted when exporting reindexed datasets #1674

Open ganindu7 opened 1 week ago

ganindu7 commented 1 week ago

for example

my_dataset.transform("reindex", start=0)
my_dataset.export(exportPath, format="cvat", save_media=True, image_ext=".png")

would create images with indexes 0.png, 10.png, 100.png

I tried with a format string but didn't really work. is there a way to achieve this?

my goal is to have 000000.png, 000010.png, 000100.png instead varying number of digits.