-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 to I can run this code #179
Comments
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. |
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! |
Ok, following the example in combined_interface.py, it should work if you run this command in the scripts directory:
Just replace "search terms" with some terms describing the type of radiographs you are looking for, such as "COVID" or "pneumonia". You can run 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. |
I run browse_page_from_cache.py and then I have a problem with code: AttributeError: type object 'MHTMLCache' has no attribute 'source'.
Can you help me fix this?
Thank you very much!
The text was updated successfully, but these errors were encountered: