Skip to content

Can normal_ir be used in JPG format #2717

Closed

Description

@monkeycc
root/
├── normal_dir/
│ ├── image1.jpg
│ └── image2.jpg
├── abnormal_dir/
│ ├── image3.png
│ └── image4.png
└── mask_dir/
├── mask3.png
└── mask4.png

Can normal_ir be used in JPG format

I have read many tutorials on writing PNG format
If I use JPG, will it have any impact

Activity

  1. samet-akcay commented on May 20, 2025

    @samet-akcay
    Contributor

    Yes, you can. If you are using Folder datamodule, there is extensions argument. It uses torchvisions's IMG_EXTENSIONS and jpg is one of them.

    extensions (tuple[str, ...] | None): Image extensions to include.

  2. locked and limited conversation to collaborators on May 20, 2025
  3. converted this issue into a discussion #2718 on May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions