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

Detectron2 Cannot find field 'gt_masks' in the given Instances! #186

Open
1 of 2 tasks
gamikasa opened this issue Aug 22, 2023 · 1 comment
Open
1 of 2 tasks

Detectron2 Cannot find field 'gt_masks' in the given Instances! #186

gamikasa opened this issue Aug 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@gamikasa
Copy link

gamikasa commented Aug 22, 2023

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

Train Detectron2 Segmentation on Custom Data

Bug

image
image

Environment

-Google Collab

Minimal Reproducible Example

AttributeError Traceback (most recent call last)
in <cell line: 3>()
1 trainer = DefaultTrainer(cfg)
2 trainer.resume_or_load(resume=False)
----> 3 trainer.train()

12 frames
/usr/local/lib/python3.10/dist-packages/detectron2/structures/instances.py in getattr(self, name)
64 def getattr(self, name: str) -> Any:
65 if name == "_fields" or name not in self._fields:
---> 66 raise AttributeError("Cannot find field '{}' in the given Instances!".format(name))
67 return self._fields[name]
68

AttributeError: Cannot find field 'gt_masks' in the given Instances!

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@gamikasa gamikasa added the bug Something isn't working label Aug 22, 2023
@github-actions
Copy link

👋 Hello @gamikasa, thank you for leaving an issue on Roboflow Notebooks.

🐞 Bug reports

If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.

If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.

💬 Get in touch

Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.

To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant