首先看看是不是用户自己的包,如果不是再安装网上的包。
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 45
42 import keras_metrics as km
43 from keras.models import load_model
---> 45 from models.v8 import create_model
46 from models.custom_metrics import auroc, auprc, recall_m, precision_m, f1_m
48 get_ipython().run_line_magic('matplotlib', 'inline')
ModuleNotFoundError: No module named 'models'
不是从网上下载并安装的包; 是我们自己的包。
from models.v8 import create_model
from models.custom_metrics import auroc, auprc, recall_m, precision_m, f1_m
- ModuleNotFoundError module models named 39modulenotfounderror module named 39 modulenotfounderror module models named modulenotfounderror watchdog module named modulenotfounderror module kornia named modulenotfounderror packaging module named pytorch module named 39 modulenotfounderror module pandas named modulenotfounderror module infer named modulenotfounderror module named torch modulenotfounderror module lanms named