jannisborn / covid19_ultrasound

Open source lung ultrasound (LUS) data collection initiative for COVID-19.
https://www.mdpi.com/2076-3417/11/2/672
151 stars 80 forks source link

evaluating the model #114

Closed garytann closed 1 year ago

garytann commented 1 year ago

hi all, could anyone explain to me the usage of pocovidnet/scripts/test.py ? It is confusing as there is no testing dataset that is being created during the cross_validation. would appreciate some guide here

Thank you!

jannisborn commented 1 year ago

Purpose of the script is simply to run inference on a piece of data, see here: https://github.com/jannisborn/covid19_ultrasound/blob/master/pocovidnet/README.md#test-the-model

garytann commented 1 year ago

I see thanks for the information, I have tried running it with the default flags on test.py, but is encountering this issue.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/datadrive/covid19_ultrasound/pocovidnet/scripts/test.py", line 240, in <module>
    main()
  File "/datadrive/covid19_ultrasound/pocovidnet/scripts/test.py", line 195, in main
    model = Evaluator(
  File "/datadrive/covid19_ultrasound/pocovidnet/pocovidnet/evaluate_covid19.py", line 101, in __init__
    raise Exception('Error in model restoring.')
Exception: Error in model restoring.
jannisborn commented 1 year ago

Read the other issues, e.g., here https://github.com/jannisborn/covid19_ultrasound/issues/103

garytann commented 1 year ago

hi @jannisborn thank you so much for the help