-
Notifications
You must be signed in to change notification settings - Fork 12
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
Background Data Missing #15
Comments
Dear @z7r7y7 , you are confusing two things. The argument To summarize, the background data for However, you found a bug where it tries to sample from the background images, but it can't if there none provided. I will fix it immediately to raise a warning in that case. Best, |
Thank you very much for your response, and the issue regarding the background has been resolved! While running the code for the object detection model using Mask R-CNN, I encountered another problem in the "poet/models/backbone_maskrcnn.py" file, specifically in lines 98-112, where the variable "img_predictions" is generated containing information about the bounding boxes, labels, and scores. when adding the label information (cls) to the boxes, if the "obj_id_map" is not empty but the label does not belong to the "obj_id_map", resulting in a 1x5-dimensional "box" without label information, while in other cases, it is a 1x6-dimensional "box" with label information. This dimension mismatch can lead to an error in torch.hstack in line 112: |
You are definitely right. The model might predict objects that are not in the object_id_map. With the most recent commit, I implemented it as a skip if the detected object is not of "interest". Hope it works now and thank you for raising this issue! Best, |
Closed due to inactivity. Feel free to open the issue again. |
Thank you for providing the code!As shown below, I encountered an issue when training the model with LMO data.
I believe the issue arises from not properly loading the background data, with the default value of 'None' for 'synt_background' in the main.py file.
parser.add_argument('--synt_background', default=None, type=str, help="Directory containing the background images from which to sample")
I noticed in the documentation that 'class 0' is referred to as the background class, but I'm unsure if this represents the background data itself. How should the path for the background data be configured? Or could you please clarify if the background data needs to be downloaded separately?
Looking forward to your response. Thank you very much.
The text was updated successfully, but these errors were encountered: