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

No Change with Parameters updation #4

Open
usama-ayub-ch opened this issue Oct 17, 2024 · 3 comments
Open

No Change with Parameters updation #4

usama-ayub-ch opened this issue Oct 17, 2024 · 3 comments

Comments

@usama-ayub-ch
Copy link

Hi IrDIE,
You did a great job for small object detection. I am using your implementation but when I change , slice_height, slice_width, overlap_height_ratio, overlap_width_ratio it does not change anything in the output same confusion matrix and results. Also when I added the confidence_threshold, in detection_model, I had not seen much changes. Can you please help me with that? Thank you

@IrDIE
Copy link
Owner

IrDIE commented Oct 18, 2024

Hi! @usama-ayub-ch
1 - problem with changing hyperparameters ( slice_height, slice_width, overlap_height_ratio, overlap_width_ratio ) :
well, results gonna change if there are small objects that right in a boundary of sliced window. You can get results with overlap ratios (h and w) = 0, and check if anything changed.
Also: if sliced window inference make scence if you have many small objects, can you give example of images/labels you use?

2 - problem with changing confidence threshold:
can you describe how exactly you are changing it?
There are argument conf in compile_predictor() function that change conf threshold

  • what ultralitycs version you use?

@usama-ayub-ch
Copy link
Author

Hi,
Thank you for your response.
I have 2 classes but multiple small objects and I have satellite Images.
I am using Ultralytics 8.3 and I tried to add confidence threshold in the function, AutoDetectionModel.from_pretrained().

Thanks

@usama-ayub-ch
Copy link
Author

Hi! @usama-ayub-ch 1 - problem with changing hyperparameters ( slice_height, slice_width, overlap_height_ratio, overlap_width_ratio ) : well, results gonna change if there are small objects that right in a boundary of sliced window. You can get results with overlap ratios (h and w) = 0, and check if anything changed. Also: if sliced window inference make scence if you have many small objects, can you give example of images/labels you use?

2 - problem with changing confidence threshold: can you describe how exactly you are changing it? There are argument conf in compile_predictor() function that change conf threshold

  • what ultralitycs version you use?

How can I change 'conf threshold' in validation function.
detection_model = AutoDetectionModel.from_pretrained(
model_type='yolov8',
model_path=yolov8_model_path,
confidence_threshold=0.3,
device="cuda:0" # or "cpu"
)

like this. Because its detecting images with conf=0.3. I want the images with conf >4

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