ubuntu22.04+detectron2+Adelaidet+blendmask配置运行demo/numpy报错/安装环境参考
参考教程:基于Detectron2的BlendMask训练 BlendMask环境配置 COCO数据集_no module named 'detectron2_*大脸猫Katee的博客-CSDN博客
一、遇到问题:在运行blendmask例子中遇到ImportError: numpy.core.multiarray failed to import
解决方法:更新numpy,再重新编译detectron2,即可使用Adelaidet+blendmask demo
pip install --upgrade numpy
二、安装环境参考(python3.8,附部分安装包)
安装下载较慢建议添加清华源
pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple/
absl-py==1.4.0
# Editable install with no version control (AdelaiDet==0.2.0)
-e /home/jiaqi/桌面/software/blendmask/AdelaiDet-master
antlr4-python3-runtime==4.9.3
appdirs==1.4.4
black==21.4b2
cachetools==5.3.1
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.7
cloudpickle @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/cloudpickle-2.2.1-py3-none-any.whl#sha256=61f594d1f4c295fa5cd9014ceb3a1fc4a70b0de1164b94fbc2d854ccba056f9f
contourpy==1.1.0
cycler==0.11.0
Cython @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/Cython-0.29.15-cp38-cp38-manylinux1_x86_64.whl#sha256=072cb90e2fe4b5cc27d56de12ec5a00311eee781c2d2e3f7c98a82319103c7ed
# Editable install with no version control (detectron2==0.6)
-e /home/jiaqi/桌面/software/blendmask/detectron2-0.6
editdistance==0.6.2
fonttools==4.42.1
future==0.18.3
fvcore==0.1.5.post20221221
google-auth==2.22.0
google-auth-oauthlib==1.0.0
grpcio @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/grpcio-1.57.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=5e5b58e32ae14658085c16986d11e99abd002ddbf51c8daae8a0671fffb3467f
hydra-core @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/hydra_core-1.3.2-py3-none-any.whl#sha256=fa0238a9e31df3373b35b0bfb672c34cc92718d21f81311d8996a16de1141d8b
idna==3.4
imageio==2.31.2
importlib-metadata==6.8.0
importlib-resources==6.0.1
iopath @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/iopath-0.1.9-py3-none-any.whl#sha256=9058ac24f0328decdf8dbe209b33074b8702a3c4d9ba2f7801d46cb61a880b6e
kiwisolver==1.4.5
lazy_loader==0.3
Markdown==3.4.4
MarkupSafe==2.1.3
matplotlib==3.7.2
mypy-extensions==1.0.0
networkx==3.1
ninja==1.11.1
numpy @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/numpy-1.24.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=b0677a52f5d896e84414761531947c7a330d1adc07c3a4372262f25d84af7bf7
oauthlib==3.2.2
omegaconf==2.3.0
opencv-python @ file:///home/jiaqi/%E6%A1%8C%E9%9D%A2/software/blendmask/opencv_python-4.8.0.76-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=9bcb4944211acf13742dbfd9d3a11dc4e36353ffa1746f2c7dcd6a01c32d1376
packaging==23.1
pathspec==0.11.2
Pillow @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/Pillow-9.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=03150abd92771742d4a8cd6f2fa6246d847dcd2e332a18d0c15cc75bf6703040
Polygon3==3.0.9.1
portalocker==2.7.0
protobuf==4.24.2
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycocotools==2.0.2
pydot @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/pydot-1.4.2-py2.py3-none-any.whl#sha256=66c98190c65b8d2e2382a441b4c0edfdb4f4c025ef9cb9874de478fb0793a451
pyparsing==3.0.9
python-dateutil==2.8.2
PyWavelets==1.4.1
PyYAML @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735
rapidfuzz @ file:///croot/rapidfuzz_1679593470109/work
regex==2023.8.8
requests==2.31.0
requests-oauthlib==1.3.1
rsa==4.9
scikit-image==0.21.0
scipy @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/scipy-1.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=07c3457ce0b3ad5124f98a86533106b643dd811dd61b548e78cf4c8786652f6f
shapely==2.0.1
six==1.16.0
tabulate @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/tabulate-0.9.0-py3-none-any.whl#sha256=024ca478df22e9340661486f85298cff5f6dcdba14f3813e8830015b9ed1948f
tensorboard @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/tensorboard-2.14.0-py3-none-any.whl#sha256=3667f9745d99280836ad673022362c840f60ed8fefd5a3e30bf071f5a8fd0017
tensorboard-data-server==0.7.1
termcolor @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/termcolor-2.2.0-py3-none-any.whl#sha256=91ddd848e7251200eac969846cbae2dacd7d71c2871e92733289e7e3666f48e7
tifffile==2023.8.30
toml==0.10.2
torch @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/torch-1.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl#sha256=cccddc32b8941bd03ede29ff0a1cce2f2b51113a5ee23bb8b979316ac2114183
torchaudio @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/torchaudio-0.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl#sha256=31fed07570522085917d3ec00ad844c0503557689e89df257a06cc9d1427cea2
torchvision @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/torchvision-0.11.0%2Bcu113-cp38-cp38-linux_x86_64.whl#sha256=73a9bb7c05ed76f7538e78a889b0d7578a4b48a09e00d36d8f7acf60df3cfa4a
tqdm==4.66.1
typing_extensions==4.7.1
urllib3==1.26.16
Werkzeug==2.3.7
yacs @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/yacs-0.1.8-py3-none-any.whl#sha256=99f893e30497a4b66842821bac316386f7bd5c4f47ad35c9073ef089aa33af32
zipp @ file:///home/jiaqi/%E4%B8%8B%E8%BD%BD/zipp-3.16.2-py3-none-any.whl#sha256=679e51dd4403591b2d6838a48de3d283f3d188412a9782faadf845f298736ba0