Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. #1140

Merged
merged 8 commits into from
Aug 3, 2020

Conversation

oatawa1
Copy link
Contributor

@oatawa1 oatawa1 commented Jul 30, 2020

What this patch does to fix the issue.

This patch adds the PASCALVOC format dataset with customization input data class functionality.

CLASSES = ['person'] # This parameters has to set a list of real class. It cannot refer to DATASET.CLASSES

# These three parameters have to set in the config file. (Now I use the VOC2007 as an example)
DATASET.CLASSES = CLASSES
DATASET.AVAILABLE_SUBSETS = ["train", "validation", "test", "train_validation"]
DATASET.EXTEND_DIR = "PASCALVOC_2007/VOCdevkit/VOC2007"

Link to any relevant issues or pull requests.

@blueoil-butler blueoil-butler bot added the CI: auto-run Run CI automatically label Jul 30, 2020
@bo-code-review-bot
Copy link

This PR needs Approvals as follows.

  • Ownership Approval for / from iizukak, tkng, ruimashita
  • Readability Approval for Python from tkng, tsawada, tfujiwar

Please choose reviewers and requet reviews!

Click to see how to approve each reviews

You can approve this PR by triggered comments as follows.

  • Approve all reviews requested to you (readability and ownership) and LGTM review
    Approval, LGTM

  • Approve all ownership reviews
    Ownership Approval or OA

  • Approve all readability reviews
    Readability Approval or RA

  • Approve specified review targets

    • Example of Ownership Reviewer of /: Ownership Approval for / or OA for /
    • Example of Readability Reviewer of Python: Readability Approval for Python or RA for Python
  • Approve LGTM review
    LGTM

See all trigger comments

Please replace [Target] to review target

  • Ownership Approval
    • Ownership Approval for [Target]
    • OA for [Target]
    • Ownership Approval
    • OA
    • Approval
  • Readability Approval
    • Readability Approval for [Target]
    • RA for [Target]
    • [Target] Readability Approval
    • [Target] RA
    • Readability Approval
    • RA
    • Approval
  • LGTM
    • LGTM
    • lgtm

@oatawa1 oatawa1 self-assigned this Jul 30, 2020
@oatawa1 oatawa1 added the enhancement New feature or request label Jul 30, 2020
@iizukak
Copy link
Member

iizukak commented Jul 30, 2020

Looks almost good.

@oatawa1 oatawa1 changed the title Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. [WIP]Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Jul 30, 2020
@oatawa1 oatawa1 changed the title [WIP]Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Jul 30, 2020
@oatawa1
Copy link
Contributor Author

oatawa1 commented Jul 30, 2020

@iizukak Thank you.

Copy link
Member

@iizukak iizukak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OA

@iizukak iizukak requested a review from tfujiwar July 30, 2020 13:46
@iizukak
Copy link
Member

iizukak commented Jul 30, 2020

@tfujiwar
I know this PR do not have unit test.
But currently, all PASCALVOC classes dose not have unit test.
So I create #1142 for add unit test and want to add unit test in other PR.

@oatawa1
Copy link
Contributor Author

oatawa1 commented Aug 3, 2020

@iizukak Thank you for OA and commit.

May I ask about the debug text? Shall we remove it from the following location as well?

print("{} {} files and annotations are ready".format(self.__class__.__name__, self.subset))

print("{} {} files and annotations are ready".format(self.__class__.__name__, self.subset))

print("files and annotations are ready")

@oatawa1 oatawa1 changed the title Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. [WIP]Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Aug 3, 2020
@oatawa1 oatawa1 changed the title [WIP]Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Aug 3, 2020
@oatawa1 oatawa1 requested a review from tfujiwar August 3, 2020 01:41
@oatawa1
Copy link
Contributor Author

oatawa1 commented Aug 3, 2020

@tfujiwar I fixed all the readability, could you review this PR again?

Copy link
Contributor

@tfujiwar tfujiwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RA

@oatawa1
Copy link
Contributor Author

oatawa1 commented Aug 3, 2020

@tfujiwar Thank you

@oatawa1
Copy link
Contributor Author

oatawa1 commented Aug 3, 2020

/ready

@bo-mergebot
Copy link
Contributor

bo-mergebot bot commented Aug 3, 2020

⏳Merge job is queued...

@bo-mergebot
Copy link
Contributor

bo-mergebot bot commented Aug 3, 2020

😥Status check failed. Please fix problems and send /ready again.

@oatawa1 oatawa1 requested a review from tfujiwar August 3, 2020 04:00
Copy link
Contributor

@tfujiwar tfujiwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RA

@oatawa1
Copy link
Contributor Author

oatawa1 commented Aug 3, 2020

@tfujiwar Thank you and sorry for request many times.

@oatawa1
Copy link
Contributor Author

oatawa1 commented Aug 3, 2020

/ready

@bo-mergebot
Copy link
Contributor

bo-mergebot bot commented Aug 3, 2020

⏳Merge job is queued...

@oatawa1 oatawa1 changed the title Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. [WIP] Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Aug 3, 2020
@oatawa1 oatawa1 changed the title [WIP] Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Enhance the dataset class to accept the dataset in PASCALVOC format with configuration. Aug 3, 2020
@bo-mergebot bo-mergebot bot merged commit 07a14f6 into blue-oil:master Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI: auto-run Run CI automatically enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants