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 images are stuck in DBSCAN #7

Open
xiaoyao9184 opened this issue Jan 14, 2025 · 1 comment
Open

Some images are stuck in DBSCAN #7

xiaoyao9184 opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xiaoyao9184
Copy link

xiaoyao9184 commented Jan 14, 2025

db = DBSCAN(eps=epsilon, min_samples=min_samples).fit(valid_pred)

Conducting multi-region scans on single-region watermarked images can be quite slow, which is understandable because separation is not possible.

However, some images seem to cause the DBSCAN algorithm to get stuck indefinitely. like this

Since I can't understand why the DBSCAN algorithm is getting stuck, I vaguely noticed that high-resolution images seem not to have this issue. Perhaps I should adjust the epsilon and min_samples parameters based on the image size like this scikit-learn/scikit-learn#17650 ?

@pierrefdz pierrefdz self-assigned this Jan 20, 2025
@pierrefdz pierrefdz added the bug Something isn't working label Jan 20, 2025
@pierrefdz
Copy link
Contributor

pierrefdz commented Jan 20, 2025

Hi, sorry for the delay of answer.

  • Would you be able to send your code?
  • I have the same issue when trying to extract one message from more than 40% of image pixels. I think it comes from the fact that DBSCAN clustering must run on too many pixels. The issue is more complicated than I thought and may be tricky to solve. I'll try to have a look at it in the following days. If you find something please tell me :)

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

2 participants