Giter Club home page Giter Club logo

Comments (8)

Karol-G avatar Karol-G commented on May 26, 2024 1

Thanks, the error is gone now. :)

from gandlf.

sarthakpati avatar sarthakpati commented on May 26, 2024

Hey Karol,

I believe this is fixed in the refactor branch. 😄

https://github.com/CBICA/GaNDLF/blob/refactor/GANDLF/data/ImagesFromDataFrame.py#L71

We were using psize earlier and have since moved to using the more verbose (and in our opinion, clearer) variable name of patch_size in the refactor branch. Hope this clears up the confusion!

Cheers!

from gandlf.

Karol-G avatar Karol-G commented on May 26, 2024

This is actually the refactor branch^^
https://github.com/CBICA/GaNDLF/blob/a5a7d9c945edb003d02f50dc3a69eb830d564247/GANDLF/preprocessing.py#L179
psize is still in the init() here.
There are about 20 more places in the code where psize is assigned or checked, but I don't know if that is relevant to the problem.

Best
Karol

from gandlf.

sarthakpati avatar sarthakpati commented on May 26, 2024

Got it. I have made fixes in the training side, while @Geeks-Sid is working on the inference part.

from gandlf.

sarthakpati avatar sarthakpati commented on May 26, 2024

Awesome! Glad we are able to keep this working with a short turnaround! 😄

from gandlf.

Karol-G avatar Karol-G commented on May 26, 2024

There are actually still some psize errors when I try to run inference. But training is working :)

Traceback (most recent call last):
  File "/home/me/Documents/GitKraken/GaNDLF/gandlf_run", line 75, in <module>
    main()
  File "/home/me/Documents/GitKraken/GaNDLF/gandlf_run", line 72, in main
    InferenceManager(dataframe=data_full, headers = headers, outputDir=model_path, parameters=parameters, device=device)
  File "/home/me/Documents/GitKraken/GaNDLF/GANDLF/inference_manager.py", line 36, in InferenceManager
    inferenceLoopRad(inferenceDataFromPickle=inferenceData_full, headers=headers, outputDir=outputDir,
  File "/home/me/Documents/GitKraken/GaNDLF/GANDLF/inference_loop.py", line 41, in inferenceLoopRad
    psize = parameters['psize']
KeyError: 'psize'

from gandlf.

sarthakpati avatar sarthakpati commented on May 26, 2024

Yup, inference is not yet complete (this is on @Geeks-Sid's plate at this moment).

from gandlf.

sarthakpati avatar sarthakpati commented on May 26, 2024

I believe this should now be fixed. @Karol-G please comment/re-open if you see issues.

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.