Skip to content

[Fix] Fix module PascalContextDataset #3235

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

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

angiecao
Copy link
Contributor

@angiecao angiecao commented Jul 27, 2023

Motivation

  • 'PascalContextDataset' object has no attribute 'file_client', it will cause an error.
  • The attribute ‘ann_file’ is not allowed to be empty, otherwise, an error will be reported.

Modification

  • Replace file_client with fileio

@xiexinch xiexinch changed the base branch from main to dev-1.x July 31, 2023 09:23
img_suffix='.jpg',
seg_map_suffix='.png',
reduce_zero_label=True,
Copy link
Collaborator

Choose a reason for hiding this comment

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

img_suffix='.jpg',
seg_map_suffix='.png',
reduce_zero_label=True,
reduce_zero_label=False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

And here it should be True.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your correction. I think I was confused because when I created the annotation maps, I had set the background to 255, and the category labels are 0-59, which caused me to set recude_zero_label to False in class ''PascalContextDataset59''. I've restored the settings for reduce_zero_label.

@xiexinch xiexinch merged commit 4927b0e into open-mmlab:dev-1.x Aug 9, 2023
angiecao added a commit to angiecao/mmsegmentation that referenced this pull request Aug 31, 2023
## Motivation

- 'PascalContextDataset' object has no attribute 'file_client', it will
cause an error.
- The attribute ‘ann_file’ is not allowed to be empty, otherwise, an
error will be reported.

## Modification
- Replace file_client with fileio
emily-lin pushed a commit to emily-lin/mmsegmentation that referenced this pull request Nov 18, 2023
## Motivation

- 'PascalContextDataset' object has no attribute 'file_client', it will
cause an error.
- The attribute ‘ann_file’ is not allowed to be empty, otherwise, an
error will be reported.

## Modification
- Replace file_client with fileio
nahidnazifi87 pushed a commit to nahidnazifi87/mmsegmentation_playground that referenced this pull request Apr 5, 2024
## Motivation

- 'PascalContextDataset' object has no attribute 'file_client', it will
cause an error.
- The attribute ‘ann_file’ is not allowed to be empty, otherwise, an
error will be reported.

## Modification
- Replace file_client with fileio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy