Giter VIP home page Giter VIP logo

Comments (5)

sarthakpati avatar sarthakpati commented on August 25, 2024 1

Can you try by disabling resizing?

Update: instead of [3,128,128], use [128,128]. The reason behind this is that ITK reads multi-channel images as vector pixel types, and the vector dimension is not needed for processing (it is automatically handled via ITK's processing routines).

from gandlf.

sarthakpati avatar sarthakpati commented on August 25, 2024

Hey @orhunguley,

This is a great report, and allowed me to recreate the issue perfectly. I am hoping that I can solve it quickly and put in a PR.

Cheers!

from gandlf.

sarthakpati avatar sarthakpati commented on August 25, 2024

Can you try pulling from https://github.com/sarthakpati/GaNDLF/tree/100_rgb_fix to see if this fixes your problem?

from gandlf.

orhunguley avatar orhunguley commented on August 25, 2024

Hi Sarthak,
I got the following error with  100_rgb_fix branch:


Traceback (most recent call last):
  File "gandlf_run", line 157, in <module>
    main()
  File "gandlf_run", line 143, in main
    reset_prev=reset_prev,
  File "/home/orhunguley/Git/GanDLF_forked/GaNDLF/GANDLF/training_manager.py", line 242, in TrainingManager
    testing_data=testingData,
  File "/home/orhunguley/Git/GanDLF_forked/GaNDLF/GANDLF/training_loop.py", line 654, in training_loop
    training_data_for_torch = ImagesFromDataFrame(training_data, params, train=True)
  File "/home/orhunguley/Git/GanDLF_forked/GaNDLF/GANDLF/data/ImagesFromDataFrame.py", line 271, in ImagesFromDataFrame
    img_resized = apply_resize(img, preprocessing_params=preprocessing)
  File "/home/orhunguley/Git/GanDLF_forked/GaNDLF/GANDLF/preprocessing.py", line 87, in apply_resize
    resize_image_resolution(input, preprocessing_params["resize"]),
  File "/home/orhunguley/Git/GanDLF_forked/GaNDLF/GANDLF/preprocessing.py", line 77, in resize_image_resolution
    outputSpacing[i] = outputSpacing[i] * (inputSize[i] / output_size[i])
IndexError: index 2 is out of bounds for axis 0 with size 2

from gandlf.

orhunguley avatar orhunguley commented on August 25, 2024

Hi @sarthakpati,
Thanks, with setting [128, 128] the issue is solved now!

from gandlf.

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.