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

Strong tiling artifacts #190

Closed
Buglakova opened this issue Feb 5, 2024 · 3 comments
Closed

Strong tiling artifacts #190

Buglakova opened this issue Feb 5, 2024 · 3 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@Buglakova
Copy link

When I run the network prediction, the result has strong tiling artifacts. I use quite big halo, but it doesn't help. I encountered this before when using U-Net that wasn't trained for long enough or didn't see enough ground truth, which is kind of the case when applying a pretrained network to different data. As a workaround, would be nice to have an option for smooth transition between tiles, like in the original U-Net publication, where within the halo the weight of the tile in the result falls linearly towards the edge of the tile.

Here is an example:
Screenshot from 2024-02-05 13-49-59
Screenshot from 2024-02-05 13-50-18

Furthermore, it propagates to the superpixels (here GASP run on the wrong channel, but still you can see clearly the squares)
Screenshot from 2024-02-05 13-50-43

@qin-yu
Copy link
Collaborator

qin-yu commented Feb 26, 2024

I'm looking into it and believe it relates to #205

@qin-yu qin-yu self-assigned this Apr 12, 2024
@qin-yu qin-yu added bug Something isn't working enhancement New feature or request labels Apr 12, 2024
@qin-yu
Copy link
Collaborator

qin-yu commented Apr 12, 2024

Fixing #205 doesn't help, i.e. changing size of halo doesn't improve prediction, which indicates more serious problems. Thus #220 and wolny/pytorch-3dunet#113

Progress:

  1. Halo implementation is fixed, which already greatly improved the prediction (Fix halo implementation and tiling artefact wolny/pytorch-3dunet#113 (comment))
  2. Intensity normalisation doesn't cause problem at least for ovules (training data) and mouse (another dataset).
  3. Batch norm fix hallucinations created by group norm in mouse embryo (I mean you need to train with batch norm again).

@qin-yu
Copy link
Collaborator

qin-yu commented Apr 13, 2024

For PlantSeg:

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

No branches or pull requests

2 participants