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

Some questions about decode_item.py #19

Open
Hazarch opened this issue Mar 21, 2024 · 2 comments
Open

Some questions about decode_item.py #19

Hazarch opened this issue Mar 21, 2024 · 2 comments

Comments

@Hazarch
Copy link

Hazarch commented Mar 21, 2024

That's great work! I'm currently trying to train a personalized model on my own dataset.
However, I'm encountering some issues with decode_item.py.
Is there a dimension handling error in the center_crop_arr function?
And, the memory usage of decode_item.py keeps increasing during the training process. Regarding the second point, I cannot say for certain if it is a problem unique to me being a Python novice.
Looking forward to your answer.

@frank-xwang
Copy link
Owner

Hi, Thank you for your interest in our research! We didn't find the dimension handling error during our training process. If you could share a screenshot of the error message you encountered, it would greatly assist us in understanding and addressing the issue. Thank you

Regarding your second question, I didn't observe the issue of increasing memory usage during the training. While it's possible for memory usage to rise during the initial several iterations, it typically stabilizes afterward. The main reason is that some images have fewer instances.

@Hazarch
Copy link
Author

Hazarch commented Mar 25, 2024

Thank you for your response. Regarding the second point, I found that it was caused by the high resolution of the images in my dataset. As for the first point, I believe that in segs = [seg.resize(tuple(x // 2 for x in pil_image.size), resample=Image.Resampling.BOX) for seg in segs] and segs = [seg.resize(tuple(round(x * scale) for x in pil_image.size), resample=Image.Resampling.NEAREST) for seg in segs], we should not divide by 2 or multiply by the scale respectively. Otherwise, there will be a dimension error when assigning segs[i] = all_obj_segs[idx].

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

No branches or pull requests

2 participants