deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.

Home Page:https://www.manning.com/books/deep-learning-with-pytorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'p2ch13.model_seg'

JanOPedersen opened this issue · comments

This error comes up when running p2ch13_explore_data.ipynb and when outcommenting old_build2dLungMask in the import section above "from p2ch13.model_seg ... "

I realize this is about 6 months too late but in case anyone hits the same problem:

Yeah, much of the code in this github plain doesn't work and is missing code. In this case rename p2ch13.model_seg to p2ch13.model and in p2ch13/model.py uncomment from "Mask-Tuple = ..." down to the end. This starts at line 224 or thereabouts. Then in the notebook remove the plotting of images that would use the non-existent old_build2dLungMaks.