rekalantar / Covid19_Detector

Using Deep Learning to detect Covid-19 from X-Ray/CT scans of patients
23 stars 12 forks source link

referencing files on your desktop #1

Closed anonym0305 closed 4 years ago

anonym0305 commented 4 years ago

Hi Reza: Thanks for sharing your good work on github. Looks like you're referencing files on your desktop. Not sure if these files are on github as well.
df = pd.read_csv(f'{path}/metadata.csv') Hope I'm not missing something. Are you looking to share this work for others to build on?

rekalantar commented 4 years ago

Hi,

Thanks for your message. The 'metadata.csv' file can be found within my repository. You will just need to replace the path with wherever you have cloned the repo to read the data.

Let me know if you need more info.

anonym0305 commented 4 years ago

Hi Reza, Thanks for answering my query. I appreciate. I'm on a remote server and am using the following as the path path = 'https://raw.githubusercontent.com/rekalantar/covid19_detector/master/metadata.csv' instead of path = '/content/drive/My Drive/Covid-19'

I'm unable to understand how to change the path below, given the path I'm using above

Initialize the variables for training

dataset_path = f'{path}/dataset'

rekalantar commented 4 years ago

You will not need the 'metadata.csv' file to run the code, I have just included it to visualise some metadata if required. I have already saved the images in the 'DATASET' folder for direct use.

Alternatively, you can do !wget https://github.com/rekalantar/covid19_detector/blob/master/metadata.csv and then df = pd.read_csv('/metadata.csv') if you are using iPython.

anonym0305 commented 4 years ago

Hi Reza - Thanks for your help. Actually, I was running the script on Colab so the syntax would've been different. But anyways, looks like all's well. I plan to modify the code somewhat for my academic research. I don't see a reference to MIT license but I do see your statement "...so everyone can use the free GPU resources available online to improve the model." So, I guess you're okay if I modify and use your model for my academic research, obviously giving you due credit ? ~Sash

On Sat, Mar 28, 2020 at 5:09 PM Reza Kalantar notifications@github.com wrote:

You will not need the 'metadata.csv' folder to run the code, I have just included to visualise some metadata if required. I have already saved the images in the 'DATASET' folder for direct use.

Alternatively, you can used !wget https://github.com/rekalantar/covid19_detector/blob/master/metadata.csv and then df = pd.read_csv('/metadata.csv')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rekalantar/covid19_detector/issues/1#issuecomment-605519878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMTTKCSZXGBEL3OFOKKWLLRJZRR3ANCNFSM4LVUPRNA .

rekalantar commented 4 years ago

Hi Sash, IPython/Jupyter/Colab Notebook are all essentially the same thing, sharing the same syntax. So the code in my previous response should do the trick for you. Yes, you are more than welcome to use the model for your research.