edhenry / chexnet

Implementation and fullstack pipeline for CheXNet classifier
MIT License
13 stars 12 forks source link

collect_results() returns a 'NoneType' object [BUG] #29

Open Dude-Bear opened 5 years ago

Dude-Bear commented 5 years ago

Describe the bug When I run the CheXNet Workflow Example.ipynb the execution of the code "aurocs, cam_img = collect_results()" results in a TypeError because the collect_results() function returns a 'NoneType' object. This also seems to be the case in the video (https://www.youtube.com/watch?v=AQLgIxQC5g0) uploaded by @edhenry but in his case, the renewed execution of the codeblocks doesn't result in an error. In my case, I get the same error again and sometimes I get the error message with the additional information " % xray.results.image [0] reached end of offset 0"

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the playbook directory
  2. Issue the ansible-playbook -i hosts build_site.yml command
  3. Go with the browser to http://172.23.0.20:8888/tree
  4. Execute the notebook cells (and upload an image)

Expected behavior As in the video, a bar chart should appear.

Screenshots first case: TypeError

second case: TypeError2

Desktop (please complete the following information):

Additional context I just started to learn how to program, so hopefully, I described the error good enough. It may just be a simple mistake I'm doing, but I can't finger out what it is. Thanks a lot to @edhenry for this awesome repository!