Skip to content
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

AssertionError in Detectron2 PanopticFPN with Custom Mapper #5411

Closed
duckling800 opened this issue Dec 20, 2024 · 2 comments
Closed

AssertionError in Detectron2 PanopticFPN with Custom Mapper #5411

duckling800 opened this issue Dec 20, 2024 · 2 comments
Labels
invalid/unrelated unrelated to this project or invalid type of issues needs-more-info More info is needed to complete the issue

Comments

@duckling800
Copy link

I'm encountering an AssertionError: assert "sem_seg" in batched_inputs[0] while training a Detectron2 model with PanopticFPN and a custom mapper for data augmentation.
Custom Mapper:
Briefly explain the purpose of your custom mapper (e.g., increase data augmentation).
Include the relevant code snippet for custom_mapper. Remove sensitive information if necessary. Consider linking to a Gist or repository if the code is lengthy.
Full Error Traceback:
Provide a complete copy of the error traceback, including line numbers and any associated error messages. You can paste this into a code block using triple backticks (`````) on GitHub.
Expected Behavior:
Describe how you expected the code to work (e.g., model to train with augmentations applied).
Troubleshooting Steps:
Mention any steps you've already tried to resolve the issue (e.g., reviewed similar examples, double-checked code for assumptions about data format).
Environment:
List key components (OS, Python version, Detectron2 version, GPU details).
Additional Context (Optional):
Include any relevant information not covered above, such as configuration files or specific datasets.
If you have specific questions or areas where you need guidance, feel free to mention them.
Example Code Snippet:

Python

def custom_mapper(dataset_dict):
# ... (Your custom data augmentation logic here) ...
return dataset_dict
Additional Considerations:

Double-check potential typos or errors in your custom_mapper function.
Verify if any assumptions about input data formats or image dimensions might be causing problems.
Consider simplifying your custom mapping logic temporarily to isolate the root cause.
Review Detectron2 documentation or search for similar issues in the community forums.

@github-actions github-actions bot added the needs-more-info More info is needed to complete the issue label Dec 20, 2024
Copy link

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs";

Copy link

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.

@github-actions github-actions bot added the invalid/unrelated unrelated to this project or invalid type of issues label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid/unrelated unrelated to this project or invalid type of issues needs-more-info More info is needed to complete the issue
Projects
None yet
Development

No branches or pull requests

1 participant