chexpert-labeler icon indicating copy to clipboard operation
chexpert-labeler copied to clipboard

Running CheXpert labeler on Google Colab?

Open PabloMessina opened this issue 2 years ago • 4 comments

Hi. I'm trying to run CheXpert labeler on Google Colab, but I'm unable to generate labels for the sample_reports.csv. You can find my attempt here: https://colab.research.google.com/drive/17ABqvLdJd5GcuxRGPMgQwS5HqtWSIcww?usp=sharing

Do you have, or at least know how to implement, a minimal working example of CheXpert labeler running on colab?

Thanks in advance, Pablo

PabloMessina avatar Nov 16 '22 18:11 PabloMessina

I'm not aware of a working example in Colab. Instead of running a shell command you could try importing the label function and running it from within Colab instead?

jirvin16 avatar Nov 16 '22 21:11 jirvin16

Do you mean using Colab's Python instead of the Python that comes with conda? What should I do instead of running conda env create -f environment.yml?

PabloMessina avatar Nov 16 '22 22:11 PabloMessina

I mean something like:

from chexpert_labeler.label import label

label(...)

jirvin16 avatar Nov 17 '22 21:11 jirvin16

I am also trying to setup on Google colab without success.. Were you able to get it to work ?

njan-creative avatar Dec 18 '22 07:12 njan-creative