Open Akimio521 opened 6 days ago
更换一下软件源试试呢,我看https://pypi.org/project/huggingface-hub/,这个是有huggingface-hub>=0.24的
并没有使用使用第三方软件源,使用的是默认的pip源
我尝试先安装huggingface-hub
(使用的是目前最新的0.13.4),再安装segmentation_models
pip install git+https://github.com/qubvel/segmentation_models
Collecting git+https://github.com/qubvel/segmentation_models
Cloning https://github.com/qubvel/segmentation_models to c:\users\akimio\appdata\local\temp\pip-req-build-p7ar5mup
Running command git clone --filter=blob:none --quiet https://github.com/qubvel/segmentation_models 'C:\Users\akimio\AppData\Local\Temp\pip-req-build-p7ar5mup'
Resolved https://github.com/qubvel/segmentation_models to commit 5d24bbfb28af6134e25e2c0b79e7727f6c0491d0
Running command git submodule update --init --recursive -q
Preparing metadata (setup.py) ... done
Requirement already satisfied: keras_applications<=1.0.8,>=1.0.7 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models==1.0.1) (1.0.8)
Requirement already satisfied: image-classifiers==1.0.0 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models==1.0.1) (1.0.0)
Requirement already satisfied: efficientnet==1.1.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models==1.0.1) (1.1.1)
Requirement already satisfied: scikit-image in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from efficientnet==1.1.1->segmentation-models==1.0.1) (0.19.3)
Requirement already satisfied: h5py in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from keras_applications<=1.0.8,>=1.0.7->segmentation-models==1.0.1) (3.8.0)
Requirement already satisfied: numpy>=1.9.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from keras_applications<=1.0.8,>=1.0.7->segmentation-models==1.0.1) (1.21.6)
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (9.2.0)
Requirement already satisfied: networkx>=2.2 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (2.6.3)
Requirement already satisfied: packaging>=20.0 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (23.2)
Requirement already satisfied: scipy>=1.4.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (1.7.3)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (1.3.0)
Requirement already satisfied: imageio>=2.4.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (2.35.1)
Requirement already satisfied: tifffile>=2019.7.26 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (2021.11.2)
出现以上提示,但models/model.py
还是无法正确import对应的package