GithubHelp home page GithubHelp logo

Comments (6)

mmuckley avatar mmuckley commented on June 8, 2024 1

@silgonel
What version of PyTorch and PyTorch Lightning are you running? It looks like this error was thrown by Lightning. I was on 1.7.1 and 1.0.8.

EDIT: much apologies - I see you matched what is in the requirements.txt. I'll try to match with the small version of CheXpert. Yes, you're right, we use the large one.

from covidprognosis.

nataschadam avatar nataschadam commented on June 8, 2024 1

Hello @mmuckley ,
I am a colleague of @silgonel .

Thank you very much for your help. After the answer you gave us yesterday, we realized that even if we used the file "requirements" to create a new conda environment, conda didn't install the required versions of the packages. We created a new conda environment manually installing the required packages, and fortunately, the problem is gone and the training is working.
Thank you very much for your help!

from covidprognosis.

mmuckley avatar mmuckley commented on June 8, 2024

Hello @silgonel.
First, I apologize for taking so long to respond. I was out of work for a bit and have been working on some other things.

The logits are the log probabilities, so their range is the entire real number line. You run a sigmoid layer to get the probabilities.

As for the error, I can't reproduce it. On my machine I ran the following command:

python train_sip.py --pretrained_file https://dl.fbaipublicfiles.com/CovidPrognosis/pretrained_models/mimic_lr_0.1_bs_128_fd_128_qs_65536.pt --dataset_name chexpert

I put the location of my CheXpert data in this file.

I can complete a full training epoch with training and validation.

Do these steps mirror those you took?

from covidprognosis.

silgonel avatar silgonel commented on June 8, 2024

Hello @mmuckley ,

Thank you very much for your kind answer!
My colleague @nataschadam and I followed your steps, but we are still getting the same error.
We are currently using the "Chexpert v1.0-small" version of the dataset (the one with reduced size of 11GB) and we installed the environment following the instructions of the README.md. I attached the requirements.txt of our environment.
requirements.txt

Maybe you are testing the code with the full-size dataset? Could there be any difference?

Many thanks,
Silvia

from covidprognosis.

mmuckley avatar mmuckley commented on June 8, 2024

@silgonel
Looking at your requirements.txt it looks like you're using PyTorch Lightning 1.2.7 while the repository was tested on 1.0.8. Unfortunately, I'm tied up with other projects at the moment so I don't think I can update the repository to the new version. If you'd like to reproduce the results, I would roll back PyTorch Lightning to 1.0.8. Alternatively, you could fork the repository and update the relevant lines to output integer tensors and use the new version.

from covidprognosis.

mmuckley avatar mmuckley commented on June 8, 2024

Closing for now. Reopen if you have further issues on this topic.

from covidprognosis.

Related Issues (13)

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.