Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how use this code? #1

Open
ThatNight opened this issue Nov 1, 2022 · 1 comment
Open

how use this code? #1

ThatNight opened this issue Nov 1, 2022 · 1 comment

Comments

@ThatNight
Copy link

Hi, this code helped me a lot. May I ask how to use this code? How can the dataset/ui_xray code run successfully? What should I do if I want to use chexpert to extract the labels of the iu_xray dataset? Looking forward to your reply

@pdpino
Copy link
Owner

pdpino commented Nov 5, 2022

Hi @ThatNight !

I want to use chexpert to extract the labels of the iu_xray dataset


How can the dataset/ui_xray code run successfully

  • If you want to use the code directly: use the class IUXRayDataset, you should setup a folder like the example provided in workspace/iu-examples: with the images, clean reports in JSON and vocabulary. Set the environment variable DATASET_DIR_IU_XRAY to point to that folder, e.g. export DATASET_DIR_IU_XRAY=/path/to/data/iu-examples
  • I typically used this function to create a pytorch Dataloader:
    def prepare_data_report_generation(dataset_name=None,
  • Main requirements are torch, torchvision, opencv, pandas, numpy. See requirements for the full list (though some library versions might be somewhat old by now)

Tbh, the code grew a lot and there is a lot of additional stuff for running experiments, debugging and other things. You can probably delete some methods that won't be useful, or even start from scratch and use this only for reference 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants