I am a medical student and I am using google colab to learn fastAI.
In this project, https://github.com/QinglingGo/Classification-of-Objects-using-Deep-Learning-Model,
I can achieve the output of the model, but I don't know how to perform the prediction.py
and the evaluat_performance.py
files.
When I run the evaluat_performance.py
, the following message will appear:
python3: can't open file 'prediction.py': [Errno 2] No such file or directory
/usr/local/lib/python3.6/dist-packages/IPython/utils/traitlets.py:5: UserWarning: IPython.utils.traitlets has moved to a top-level traitlets package.
warn ("IPython.utils.traitlets has moved to a top-level traitlets package.")
1. Loading Data ...
ImageDataBunch;
Train: LabelList (942 items)
x: SegmentationItemList
Image (3, 256, 256), Image (3, 256, 256), Image (3, 256, 256), Image (3, 256, 256), Image (3, 256, 256)
y: SegmentationLabelList
ImageSegment (1, 256, 256), ImageSegment (1, 256, 256), ImageSegment (1, 256, 256), ImageSegment (1, 256, 256), ImageSegment (1, 256, 256)
Path: / content / drive / My Drive / Colab Notebooks / bbc_train / images;
Valid: LabelList (0 items)
x: SegmentationItemList
y: SegmentationLabelList
Path: / content / drive / My Drive / Colab Notebooks / bbc_train / images;
Test: None
2. Instantiating Model ...
Traceback (most recent call last):
File "evaluate_preformance.py", line 66, in <module>
combined_accuracy, classification_accuracy, bbox_score, segmentation_accuracy = evaluate ()
File "evaluate_preformance.py", line 29, in evaluate
M = Model (path = model_dir, file = 'export.pkl')
NameError: name 'Model' is not defined.
And I don't understand the meaning of "from sample_student import Model"
in line 6 of the .py
file?
Can anyone help me?
Thanks in advance!