-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transform with resize also changed the image extension from .jpg to .png #606
Comments
Hi, Datumaro should preserve the original image extension by default. The resulting The dataset produced by the from datumaro.components.dataset import Dataset
dataset = Dataset.import_from('path/', 'kitti')
dataset.transform('resize', width=800, height=600)
dataset.export('path2/', 'kitti', save_images=True) If you need to work inside a Datumaro project, you can use the lazy transform application by providing the |
thanks, does that mean those generated |
@shaojun , yes, it means. But at the same time it is possible to implement extra parameters for the export operation. Thus it can be a feature request and we are happy to accept contributions in the area. P.S. At the same time for masks it is important to use lossless format. |
Hi, probably, I was wrong about the images. I was able to reproduce the problem. Apparently, it is a result of a several problems, one of which is already described in #618 (the problem with file reading). KITTI uses the You can change the default by using
|
Hi,
thanks for the great tool.
I'm using version
0.2.2
,Ubuntu 20.04.3 LTS on x86
.I have a small testing
kitti
dataset, mixed with.jpg
and.jpeg
with size1280x720
and800x600
images files.I've tried the steps to use
datum
:can see:
then do the transform to unify image size:
datum transform -t resize -- -dw 800 -dh 600
now checking the subfolder:
source-1
in project folder:datum_proj_real
, can see all images files are renamed with.png
extension, and none of them can be opened by image viewer.I also tried manually rename one of the file's extension from
png
tojpg
, and still could not be opened with an error popup like not a valid jpg file.could you help to check?
The text was updated successfully, but these errors were encountered: