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

KeyError: 'COVID(1).png' #216

Open
SamanehShamshiri opened this issue Mar 11, 2022 · 3 comments
Open

KeyError: 'COVID(1).png' #216

SamanehShamshiri opened this issue Mar 11, 2022 · 3 comments

Comments

@SamanehShamshiri
Copy link

when I run the COVIDnet-CXR4-A on these parameters:

python train_tf.py --weightspath models/COVIDNet-CXR4-A --metaname model.meta --ckptname model-18540 --n_classes 3 --trainfile labels/train_COVIDx8A.txt --testfile labels/test_COVIDx8A.txt --out_tensorname norm_dense_1/Softmax:0 --logit_tensorname norm_dense_1/MatMul:0 --epochs 1

I have the following error:
File "train_tf.py", line 99, in
is_severity_model=args.is_severity_model)
File "D:\worksppace\COVID-Net-master\COVID-Net-master\data.py", line 146, in init
datasets[l.split()[2]].append(l)
KeyError: 'COVID(1).png'

would you please tell me how can I solve this problem?
thank you very much in advance

I am running the code on windows 10; here are the versions I installed:
python:3.6.4
tensorflow:1.15.5
tensorflow-gpu:1.15.5
opencv:4.2
cuda10.0
cudnn:7.4.2

absl-py==0.10.0
aiohttp==3.6.2
anyio==2.1.0
argon2-cffi==20.1.0
astor==0.8.1
async-generator==1.10
async-timeout==3.0.1
attrs==20.2.0
Babel==2.9.0
backcall==0.2.0
bleach==3.2.1
cached-property==1.5.2
cachetools==4.1.1
certifi==2020.6.20
cffi==1.14.3
chardet==3.0.4
contextvars==2.4
cycler==0.10.0
dataclasses==0.8
decorator==4.4.2
defusedxml==0.6.0
entrypoints==0.3
gast==0.2.2
google-auth==1.22.0
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.32.0
h5py==2.10.0
idna==2.10
idna-ssl==1.1.0
importlib-metadata==1.7.0
ipykernel==5.3.4
ipython==7.16.1
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.17.2
Jinja2==2.11.2
joblib==0.16.0
json5==0.9.5
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==6.1.7
jupyter-console==6.2.0
jupyter-core==4.6.3
jupyter-server==1.3.0
jupyterlab==3.0.7
jupyterlab-pygments==0.1.1
jupyterlab-server==2.2.0
kaggle==1.5.8
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.2.0
Markdown==3.2.2
MarkupSafe==1.1.1
matplotlib==3.3.2
mistune==0.8.4
multidict==4.7.6
nbclassic==0.2.6
nbclient==0.5.0
nbconvert==6.0.6
nbformat==5.0.7
nest-asyncio==1.4.0
nibabel==3.1.1
notebook==6.1.4
numpy==1.19.2
oauthlib==3.1.0
opencv-python==4.4.0.44
opt-einsum==3.3.0
packaging==20.9
pandas==1.1.2
pandocfilters==1.4.2
parso==0.7.1
pexpect==4.8.0
pickleshare==0.7.5
Pillow==7.2.0
prometheus-client==0.8.0
prompt-toolkit==3.0.7
protobuf==3.13.0
ptyprocess==0.6.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pydicom==2.1.2
Pygments==2.7.1
pylibjpeg==1.1.1
pylibjpeg-libjpeg==1.1.0
pylibjpeg-openjpeg==1.0.1
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
python-slugify==4.0.1
pytz==2020.1
PyYAML==5.3.1
pyzmq==19.0.2
qtconsole==4.7.7
QtPy==1.9.0
requests==2.24.0
requests-oauthlib==1.3.0
rsa==4.6
scikit-learn==0.23.2
scipy==1.5.2
Send2Trash==1.5.0
six==1.15.0
slugify==0.0.1
sniffio==1.2.0
tensorboard==2.3.0
tensorboard-plugin-wit==1.7.0
tensorflow-estimator==1.15.1
tensorflow-gpu==1.15.5
termcolor==1.1.0
terminado==0.9.1
testpath==0.4.4
text-unidecode==1.3
threadpoolctl==2.1.0
tornado==6.1
tqdm==4.49.0
traitlets==4.3.3
typing-extensions==3.7.4.3
urllib3==1.24.3
wcwidth==0.2.5
webencodings==0.5.1
Werkzeug==1.0.1
widgetsnbextension==3.5.1
wrapt==1.12.1
xlrd==1.2.0
yarl==1.6.0
zipp==3.1.0

@huyle73
Copy link

huyle73 commented Apr 4, 2022

I have same problem with you. Can you tell me how to solve this problem? Thank you

@SamanehShamshiri
Copy link
Author

I have same problem with you. Can you tell me how to solve this problem? Thank you

I couldn't solve the problem.

@huyle73
Copy link

huyle73 commented Apr 5, 2022

You can go to the newest master branch for downloading train_COVIDx9A.txt instead of the version 8

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