Comments (28)
可否提供下报这个错的命令
from paddleocr.
python train.py -c configs/det/det_mv3_db.yml -o Global.use_gpu = True
Traceback (most recent call last):
File "train.py", line 112, in
FLAGS = parser.parse_args()
File "/paddle/paddle/program.py", line 49, in parse_args
args.opt = self._parse_opt(args.opt)
File "/paddle/paddle/program.py", line 58, in _parse_opt
k, v = s.split('=')
ValueError: need more than 1 value to unpack
from paddleocr.
请问您遇到过同样的问题吗
from paddleocr.
尝试去掉“=”两端空格的空格?
python train.py -c configs/det/det_mv3_db.yml -o Global.use_gpu=True
from paddleocr.
去掉之后报这个错:
2020-05-19 07:13:02,494-INFO: {'Loss': {'function': 'ppocr.modeling.losses.det_db_loss,DBLoss', 'ohem_ratio': 3, 'beta': 10, 'main_loss_type': 'DiceLoss', 'alpha': 5, 'balance_loss': True}, 'Head': {'function': 'ppocr.modeling.heads.det_db_head,DBHead', 'inner_channels': 256, 'k': 50, 'model_name': 'large', 'out_channels': 2}, 'Global': {'train_batch_size_per_card': 8, 'reader_yml': './configs/det/det_db_icdar15_reader.yml', 'save_inference_dir': None, 'eval_batch_step': 5000, 'checkpoints': None, 'save_model_dir': './output/det_db/', 'test_batch_size_per_card': 16, 'pretrain_weights': './pretrain_models/ResNet50_vd_pretrained/', 'algorithm': 'DB', 'log_smooth_window': 20, 'use_gpu': True, 'image_shape': [3, 640, 640], 'print_batch_step': 2, 'save_res_path': './output/det_db/predicts_db.txt', 'save_epoch_step': 200, 'epoch_num': 1200}, 'Optimizer': {'function': 'ppocr.optimizer,AdamDecay', 'base_lr': 0.001, 'beta2': 0.999, 'beta1': 0.9}, 'EvalReader': {'label_file_path': './train_data/icdar2015/text_localization/test_icdar2015_label.txt', 'reader_function': 'ppocr.data.det.dataset_traversal,EvalTestReader', 'test_image_shape': [736, 1280], 'process_function': 'ppocr.data.det.db_process,DBProcessTest', 'img_set_dir': './train_data/icdar2015/text_localization/'}, 'Backbone': {'function': 'ppocr.modeling.backbones.det_resnet_vd,ResNet', 'layers': 50}, 'TestReader': {'label_file_path': './train_data/icdar2015/text_localization/test_icdar2015_label.txt', 'do_eval': True, 'single_img_path': None, 'reader_function': 'ppocr.data.det.dataset_traversal,EvalTestReader', 'test_image_shape': [736, 1280], 'process_function': 'ppocr.data.det.db_process,DBProcessTest', 'img_set_dir': './train_data/icdar2015/text_localization/'}, 'Architecture': {'function': 'ppocr.modeling.architectures.det_model,DetModel'}, 'PostProcess': {'function': 'ppocr.postprocess.db_postprocess,DBPostProcess', 'max_candidates': 1000, 'box_thresh': 0.7, 'unclip_ratio': 1.5, 'thresh': 0.3}, 'TrainReader': {'label_file_path': './train_data/icdar2015/text_localization/train_icdar2015_label.txt', 'num_workers': 8, 'reader_function': 'ppocr.data.det.dataset_traversal,TrainReader', 'process_function': 'ppocr.data.det.db_process,DBProcessTrain', 'img_set_dir': './train_data/icdar2015/text_localization/'}}
E0519 07:13:02.495303 1 pybind.cc:1261] Cannot use GPU because there is no GPU detected on your machine.
from paddleocr.
请确认您的机器是否支持GPU,如果支持的话请提供一下机器的环境,包括:GPU型号,cudnn和cuda版本
from paddleocr.
有gpu cuda10.2d
from paddleocr.
TITAN Xp
from paddleocr.
参考安装说明:
请查看paddlepaddle-gpu 是否安装正确
使用 python3 进入python解释器,输入import paddle.fluid ,再输入 paddle.fluid.install_check.run_check()
如果出现 Your Paddle Fluid is installed successfully!,说明您已成功安装。
from paddleocr.
paddle.fluid.install_check.run_check()
Running Verify Fluid Program ...
Your Paddle Fluid works well on SINGLE GPU or CPU.
/usr/local/lib/python2.7/dist-packages/paddle/fluid/executor.py:1070: UserWarning: The following exception is not an EOF exception.
"The following exception is not an EOF exception.")
2020-05-19 08:29:04,353-WARNING: Your Paddle Fluid has some problem with multiple GPU. This may be caused by:
- There is only 1 or 0 GPU visible on your Device;
- No.1 or No.2 GPU or both of them are occupied now
- Wrong installation of NVIDIA-NCCL2, please follow instruction on https://github.com/NVIDIA/nccl-tests
to test your NCCL, or reinstall it following https://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html
Original Error is: No places for execution.
Your Paddle Fluid is installed successfully ONLY for SINGLE GPU or CPU!
Let's start deep Learning with Paddle Fluid now
from paddleocr.
如果确保了你的cuda没问题,卸载paddle重新装一下吧,安装命令使用
pip install paddlepaddle-gpu==1.7.2.post107 -i https://pypi.tuna.tsinghua.edu.cn/simple
from paddleocr.
ERROR: Could not find a version that satisfies the requirement paddlepaddle-gpu==1.7.2.post107 (from versions: none)
ERROR: No matching distribution found for paddlepaddle-gpu==1.7.2.post107
from paddleocr.
装的是这个:python -m pip install paddlepaddle-gpu==1.8.0.post107 -i https://mirror.baidu.com/pypi/simple
但是还是不行
from paddleocr.
请问你是在docker里装的吗?
from paddleocr.
是的
from paddleocr.
可能是nccl没有正确安装和安装的版本不对,请参考Paddle安装文档 https://www.paddlepaddle.org.cn/install/quick 和NCCL安装文档 https://developer.nvidia.com/nccl 正确安装NCCL。
另外,建议安装paddle 1.7.x 版本,PaddleOCR暂时不支持paddle1.8版本
from paddleocr.
装的是这个:python -m pip install paddlepaddle-gpu==1.8.0.post107 -i https://mirror.baidu.com/pypi/simple
但是还是不行
建议用paddle1.7 ,目前PaddleOCR还不支持Paddle1.8 ,
顺便问下,你用的是我们的提供的docker吗
from paddleocr.
https://hub.docker.com/r/paddlepaddle/paddle/tags/ 是访问这个 然后docker pull paddlepaddle/paddle:latest
from paddleocr.
换install.md里提到的docker试一下:
如果您的机器安装的是CUDA9,请运行以下命令创建容器
sudo nvidia-docker run --name ppocr -v $PWD:/paddle --network=host -it hub.baidubce.com/paddlepaddle/paddle:latest-gpu-cuda9.0-cudnn7-dev /bin/bash
如果您的机器安装的是CUDA10,请运行以下命令创建容器
sudo nvidia-docker run --name ppocr -v $PWD:/paddle --network=host -it hub.baidubce.com/paddlepaddle/paddle:latest-gpu-cuda10.0-cudnn7-dev /bin/bash
这个docker比latest好用
from paddleocr.
可是不是root用户,不能使用sudo命令
from paddleocr.
非root用户需要sudo吧,root用户不需要加sudo了
from paddleocr.
用不了这条命令,只能是写dockerfile
from paddleocr.
那你直接 docker pull hub.baidubce.com/paddlepaddle/paddle:latest-gpu-cuda9.0-cudnn7-dev 可以拉下来吗
或者
docker pull hub.baidubce.com/paddlepaddle/paddle:latest-gpu-cuda10.0-cudnn7-dev
from paddleocr.
这个可以,这个拉下来可以直接用吗
from paddleocr.
当然可以啊,这个也是在https://hub.docker.com/r/paddlepaddle/paddle/tags/ 里的
from paddleocr.
是不用再写dockerfile,加requirments.txt了吧
from paddleocr.
不用了
from paddleocr.
安装了上述镜像之后还是,
Type "help", "copyright", "credits" or "license" for more information.
import paddle.fluid
paddle.fluid.install_check.run_check()
Running Verify Fluid Program ...
Your Paddle Fluid works well on SINGLE GPU or CPU.
/usr/local/lib/python2.7/dist-packages/paddle/fluid/executor.py:1078: UserWarning: The following exception is not an EOF exception.
"The following exception is not an EOF exception.")
2020-05-20 06:17:26,132-WARNING: Your Paddle Fluid has some problem with multiple GPU. This may be caused by:
- There is only 1 or 0 GPU visible on your Device;
- No.1 or No.2 GPU or both of them are occupied now
- Wrong installation of NVIDIA-NCCL2, please follow instruction on https://github.com/NVIDIA/nccl-tests
to test your NCCL, or reinstall it following https://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html
Original Error is: No places for execution.
Your Paddle Fluid is installed successfully ONLY for SINGLE GPU or CPU!
Let's start deep Learning with Paddle Fluid now
from paddleocr.
Related Issues (20)
- 印章文本检测DB++加svtr文字识别,碰到弯曲文本裁剪问题,这个到底要怎么解决,能联合识别吗 HOT 3
- 在paddleOCR的文档中,训练模型和推理模型有什么区别? HOT 2
- 训练模型是动态图模型,推理模型是静态图模型。 HOT 1
- kie训练自定义数据集,配置文件指定预训练模型不生效
- 自定义数据集训练KIE的RE模型的时候,提示ValueError: (InvalidArgument) x dim number should greater than 0, but received value is: 0 [Hint: Expected x_dim > 0, but received x_dim:0 <= 0:0.] (at ../paddle/phi/backends/gpu/gpu_launch_config.h:180)
- 表格识别算法-SLANet-LCNetV2 推理报错,怎么解决? HOT 1
- PPOCRLabl标注表格生成的gt.txt里面的gt的值,html代码与标注的不一样。
- 昇腾910B4报错 HOT 12
- SVTR_HGNet not supported in SUPPORT_REC_MODEL(tag:2.8.1) HOT 1
- PP-Structure文档分析 bbox排序 有bug存在 HOT 5
- re模型预测报错 InvalidArgumentError: The Variable type must be class phi::TensorArray, but the type it holds is class phi::DenseTensor.
- 使用det模型检测文本奇怪退出 HOT 1
- 版面恢复,使用python脚本如何读取pdf? HOT 1
- structure_layout报错 HOT 1
- PaddleOCR >=2.7时,PPOCRv4 det 微调不收敛,2.6.1可以 HOT 2
- nvidia tesla p100 显卡乱码 HOT 2
- 执行版面恢复的时候,指定自定义的版面分析模型报错 HOT 16
- 自定义数据集报错 HOT 3
- The GPU architecture in your current machine is Ampere, which is not compatible with Paddle installation with arch: 60 61 70 75 HOT 2
- 版面恢复pdf文件输出转成docx文档报错:ppocr ERROR: error in layout recovery image:1, err msg: list index out of range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddleocr.