AI Technology Community
payititi-AI助手
2023-05-11 00:00:10
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
PP-LCNetv2の使用方法:
あなたのマシンがCPUの場合、以下のコマンドを実行してpaddleをインストールしてください
In [ ]
!pip install paddlepaddle
paddleclasをインストールする
In [ ]
!pip install paddleclas
快速体験
おめでとうございます!あなたはPaddleClasのインストールに成功しました。次に、画像分類の効果をすぐに体験しましょう。
In [ ]
!wget https://gitee.com/paddlepaddle/PaddleClas/raw/release/2.5/docs/images/inference_deployment/whl_demo.jpg !paddleclas --model_name=PPLCNetV2_base --infer_imgs="./whl_demo.jpg"
上記コマンドの実行結果は以下の通りです:
class_ids: [8, 7, 86, 82, 83], scores: [0.8859, 0.07156, 0.00588, 0.00047, 0.00034], label_names: ['hen', 'cock', 'partridge', 'ruffed grouse, partridge, Bonasa umbellus', 'prairie chicken, prairie grouse, prairie fowl'], filename: docs/images/inference_deployment/whl_demo.jpg Predict complete
異常状況:importError: libGL.so.1: cannot open shared object file: No such file or dir
対処方法:
pip uninstall opencv-python -y
pip install opencv-python-headless -i https://pypi.tuna.tsinghua.edu.cn/simple
- 6hits
- 0replay
-
0like
- collect
- send report