Skip to content

[Docs] Installation does not provide clear examples that work on CPU #1687

@nigelsim

Description

@nigelsim

Branch

master branch https://mmocr.readthedocs.io/en/latest/

📚 The doc issue

By default, the mmocr/ocr.py script uses cuda as the device, as opposed to automatically detecting. All of the install and quick start docs suggest you run commands like python mmocr/ocr.py --det DB_r18 --recog CRNN demo/demo_text_ocr.jpg --show to test the system, but these do not work, and fail in an unexpected way that sends users off trying to fix they pyTorch installs.

The docs already show how to otherwise get the system running on a CPU. Could you provide CPU and CUDA examples for these test scripts, at least in the installation.

Suggest a potential alternative/fix

Run the following in MMOCR’s directory:

python mmocr/ocr.py --det DB_r18 --recog CRNN demo/demo_text_ocr.jpg --show

or, for CPU only

python mmocr/ocr.py --det DB_r18 --recog CRNN demo/demo_text_ocr.jpg --show --device cpu

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions