GithubHelp home page GithubHelp logo

Comments (4)

Christianfoley avatar Christianfoley commented on August 26, 2024

Hi @JohannaRahm, have you noticed the cropping issue happening in both 2D and 2.5D models, or have you only tried 2D model inference?

I cannot find anywhere in the inference pipeline where we hard-code a 2048 pixel limit. In your configuration files, have you changed the "dataset->height" and "dataset->width" parameters to 2562?

from microdl.

JohannaRahm avatar JohannaRahm commented on August 26, 2024

I created an example with our models to make it easier to find the error. The inference data contains 3 FOV with size 2048x2048, 2000x2000, and 1000x1000. They are cropped to 2048x2048, 1024x1024, and 512x512 respectively.

Here the paths:

  • inference yml file /hpc/projects/comp_micro/projects/virtualstaining/2022_microDL_nuc_mem/configfiles/tests/input_size/config_inference_2022_03_15_nuc_mem_heavy_augmentation_test_input_size.yml
  • inference data /hpc/projects/comp_micro/projects/HEK/2022_04_19_nuc_mem_LF_63x_04NA/all_pos_single_page/test_different_input_size/
  • inference results /hpc/projects/comp_micro/projects/virtualstaining/2022_microDL_nuc_mem/models/2022_03_15_nuc_mem/loss_functions/heavy_augmentation_z25-60_mae/pred_input_size/
  • model dir /hpc/projects/comp_micro/projects/virtualstaining/2022_microDL_nuc_mem/models/2022_03_15_nuc_mem/loss_functions/heavy_augmentation_z25-60_mae/
  • model yml file /hpc/projects/comp_micro/projects/virtualstaining/2022_microDL_nuc_mem/configfiles/input_nuc_mem/loss_functions/config_train_2022_03_15_nuc_mem_heavy_augmentation_z25-60_mae.yml
  • preprocess directory /hpc/projects/comp_micro/projects/virtualstaining/2022_microDL_nuc_mem/preprocess/2022_03_15_nuc_mem_z25-60/
  • preprocess yml file /hpc/projects/comp_micro/projects/virtualstaining/2022_microDL_nuc_mem/preprocess/config_preprocess_2022_03_15_nuc_mem_z25-60.yml

The width and height of the inferred data are not specified and in the scenario posted above the sizes of images in the inference data slightly differs, which make specification not possible. Looking at the sizes of the inferred images, they seem to be cropped to something which is dividable by tile size (256x256). Is specification of inference size a must and if yes why and where? The only width and height defined in the yml files are the tile sizes.

I have only tried 2D model inference.

In this test the inference code from this PR #155 is used, but the test above showed that this unexpected behavior also occurs in commit 151cc25 master branch.

from microdl.

JohannaRahm avatar JohannaRahm commented on August 26, 2024

Update: The pixel values are correctly presented in microDL. Fiji shows two versions of pixel values for these images -> see screenshot with example value = 83 (32851), where 32851 is the value stored in the pixel - rightly captured by microDL.
image

from microdl.

Soorya19Pradeep avatar Soorya19Pradeep commented on August 26, 2024

I have the same issue as @JohannaRahm with the inference images produced by microDL. The 2012x2012 input images (images resized on x-y registration) used for microDL inference produces 1024x1024 output images. The central 1024x1024 pixels in the image are chosen to run the inference.

from microdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.