Open kyrieb-ekat opened 1 week ago
For a larger demonstration of this squares phenomena, and perhaps also the layer combining/separating issue (#1207), see the below image. Note that the white dots appearing on the manuscript cover above the parchment aren't present in the manuscript image, and appear to be bleed through from the squares present on layer 3.
Hello, I have located the bug in the code, and it should be fixed now. The problem is in inference (not in training). I have updated the repository with the correction. After several tests, I haven’t encountered the problem again. I hope this fix has definitively resolved the issue. Thank you very much for reporting the error.
After training images will have, to varying degrees, odd repeating square outlines on images. I've now managed to replicate this consistently with a model on a variety of simple black and white text images. I have attached the models and images below. The artifacted lines- which may have a better term than what I'm using, so I apologize in advance for any confusion- appear to frequently remove a strip from one layer and place it into another. The squares show up most clearly and consistently on larger images.
The text images I used only had two layers: annotated layer (Layer 1) and background. The gaps from the 'squares' disappear in layer 1 and show up in background. They show poorly here, so I've copied one of the sample images into a text file with a white background to give a clear demonstrations of what's happening- the others replicate this to varying degrees.
Image names and their sizes produced by Rodan (original files at end):
AB - 571x521 BC - 543x364 CD - 571x347 DE - 551x379 Alphabet Clear BG - 7810x5176 Alphabet White BG - 611x786 Lorem Ipsum - 513x672 Abecedarian Bold - 587x777
Note: the lines are very hard to see on a black background, so they can also be viewed here, along with the model files (https://drive.google.com/drive/folders/1PI1uvjzxI775Lcc6a7FGODhueopdDGAQ?usp=sharing) if you don't want to change the GitHub black background to see them.
Original Images uploaded to classifying job:
Workflow is below. All images are separated using the Fast Pixelwise Classifier. Images/line artifact gaps might be easier to see if downloaded and opened over a white background. Background removal job not utilised
@JoyfulGen if you have any other models which consistently produce the squares, please feel free to drop them- or if you run into.think of any other circumstances which provoke them.