nadeemlab / ImPartial

Interactive deep learning whole-cell segmentation and thresholding using partial annotations
Other
34 stars 3 forks source link

Plugin Error while running Inference #26

Closed gunjan-sh closed 7 months ago

gunjan-sh commented 8 months ago

While running inference, the plugin gives a 504 error. Error pops up after Infer runs on a few images and then stops. Error is independent of the image. The behavior is random, but able to reproduce on .png format images on cloud server. Typically seeing this if dataset has more than 8-9 images. Error is only seen on Cloud server not on local deployment.

wooferclaw commented 8 months ago

I have added additional logging, that pointed me to synchronisation problems during inference request processing.

After that i haver added a mutex to ImPartial Plugin UI process to handle the inference result responses in the Fiji UI thread. It seems to fix the issue for any number of infered images.

wooferclaw commented 8 months ago

@gunjan-sh Please check PR #28 for the fixes. If it is OK - we can merge.

gunjan-sh commented 8 months ago

@wooferclaw Ran Impartial on couple of datasets, with the fix. For me the images are not getting uploaded. Getting following error everytime :

error-uploading-images