Coder Social home page Coder Social logo

Comments (3)

bganglia avatar bganglia commented on June 8, 2024 1

If you want to use the dataset itself, you should use xrv.datasets.COVID19_Dataset() from the torchxrayvision library.

The scripts you are looking at are used for adding more data to the dataset. combined_interface.py is the main one, and it scrapes data from Radiopaedia.org and Eurorad.org. Once some data has been scraped, you can run browse_page_from_cache.py to revisit the URLs of scraped pages.

Before you run combined_interface.py, make sure you download the chromedriver for your version of Chrome and unzip it in the same directory where you cloned the covid-chestxray-dataset.

from covid-chestxray-dataset.

manhhung99 avatar manhhung99 commented on June 8, 2024

As you say, I have to run combined_interface.py file, then I will run browse_page_from_cache.py file. And it request that: "combined_interface.py: error: the following arguments are required: search, newimg, newcsv, csv, max_results, results_from, handle_failure". I don't know how to fix this. Can you help me? Thank you!

from covid-chestxray-dataset.

bganglia avatar bganglia commented on June 8, 2024

Ok, following the example in combined_interface.py, it should work if you run this command in the scripts directory:

python combined_interface.py "search terms" image_output_folder/ new_metadata_filename.csv ../metadata.csv 10 internal retry

Just replace "search terms" with some terms describing the type of radiographs you are looking for, such as "COVID" or "pneumonia". You can run python combined_interface.py --help for more information on what the other arguments mean.

Also, note that you need to have wget installed. If you are on Windows, you may have to add this to your PATH.

It may help if you could explain some more about how you want to use the code.

from covid-chestxray-dataset.

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.