Skip to content

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
ann_file='',
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