Code Monkey home page Code Monkey logo

Comments (11)

seoulsky-field avatar seoulsky-field commented on July 17, 2024 1

@jieonh
Thanks to reply. I checked it, it has empty value like a below image.
스크린샷 2023-01-27 오후 4 53 53

from cxrail-dev.

chrstnkgn avatar chrstnkgn commented on July 17, 2024 1

Ok I got it. First thing first, you might also want to try python inference.py CheXpert.root_path="/home/"

The default settings in test.yaml file is sown as follows.
image
Which means that this file has multiple defaults and we assign the actual default in the code itself.
If we are using CheXpert dataset and assign the dataset default as so, the hydra will interpret the input as CheXpert, not Dataset.

from cxrail-dev.

seoulsky-field avatar seoulsky-field commented on July 17, 2024 1

@chrstnkgn
Thank you for your comment. I tried it but got a same error when I typed python inference.py +Dataset.root_path="/home/".
Also, I already tried python inference.py CheXpert.root_path="/home/", I checked it would work well. (It's just guess because server change, test.csv format is changed so that it cannot work.)

However, the user should type twice (when execute main and inference), I thought it would be changed.

from cxrail-dev.

seoulsky-field avatar seoulsky-field commented on July 17, 2024 1

@jieonh
Thanks to double check! I'm really curious about how hydra save overrides.
I execute same commands and after that, I checked overrides.yaml, but this content existed.
스크린샷 2023-01-27 오후 5 12 29

I correctly use same commands but I don't know why different contents in overrides.yaml.. 🧐

from cxrail-dev.

seoulsky-field avatar seoulsky-field commented on July 17, 2024 1

@jieonh Thanks to check!
After you said, I checked the logs folder and found config.yaml in their.
Also, that config.yaml was revised correctly.

However, I have not gotten the reason that made path error. Do you have any doubts?

from cxrail-dev.

jieonh avatar jieonh commented on July 17, 2024

As far as I know, hydra/config.yaml only logs the currently saved config list on the hydra, so the override with the cli command is not reflected. Would you check the hydra/overrides.yaml? I guess the overridden changes are likely to be saved there but I'm not so sure..!

from cxrail-dev.

chrstnkgn avatar chrstnkgn commented on July 17, 2024

Could you try python inference.py +Dataset.root_path="/home/" ? It might work but I'm not so sure - assuming there might be some problem in default settings but I should delve into inference code and test.yaml in order to understand it. I'll look at it and comment later.

from cxrail-dev.

jieonh avatar jieonh commented on July 17, 2024

@seoulsky-field
I've run it with the same command(python main.py Dataset.train_size=1000 Dataset.root_path='/home/'), found logs in the hydra/overrides.yaml !

image

from cxrail-dev.

jieonh avatar jieonh commented on July 17, 2024

I guess it might be better to modify the inference.py code to also reflect the overridden content

from cxrail-dev.

chrstnkgn avatar chrstnkgn commented on July 17, 2024

Great! We could simply change the yaml config temporarly as this error is caused by the change of our directory paths.

from cxrail-dev.

jieonh avatar jieonh commented on July 17, 2024

@seoulsky-field
I noticed that the path of your override.yaml file is somewhat different, and found out that two different logs are being saved in your working dir(logs, output).
I wonder where the output logging file came from because I don't have that one.
Anyway, if you check the other logs in the logs file, you can see that the contents are the same as my execution result!

image

image

from cxrail-dev.

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.