Fresh install of 2.0.8-Beta (uninstall, remove ProgramData / Program Files folders, reboot)
Unable to figure out how to install non-beta version of 2.0.8, but the beta seems to be making my BI unstable - it's been crashing every now and again. It was working pretty stable on the regular 2.0.8
Below is the log attempting to run OCR with GPU enabled - it seems to just exit before getting to dt_boxes:
2023-03-18 11:10:56: Latest version available is 2.0.8-Beta
2023-03-18 11:12:21: Preparing to install module 'OCR'
2023-03-18 11:12:21: Downloading module 'OCR'
2023-03-18 11:12:21: Installing module 'OCR'
2023-03-18 11:12:21: OCR: [0;33m[49m Installing CodeProject.AI Analysis Module [0m
2023-03-18 11:12:21: OCR: [0;32m[49m========================================================================[0m
2023-03-18 11:12:21: OCR: [0;32m[49m CodeProject.AI Installer [0m
2023-03-18 11:12:21: OCR: [0;32m[49m========================================================================[0m
2023-03-18 11:12:21: OCR: [0;39m[49mCUDA Present...[0m[0;92m[49mTrue[0m
2023-03-18 11:12:21: OCR: [0;39m[49mAllowing GPU Support: [0m[0;92m[49mYes[0m
2023-03-18 11:12:21: OCR: [0;39m[49mAllowing CUDA Support: [0m[0;92m[49mYes[0m
2023-03-18 11:12:21: OCR: [0;97m[104mGeneral CodeProject.AI setup [0m
2023-03-18 11:12:21: OCR: [0;39m[49mCreating Directories...[0m[0;92m[49mDone[0m
2023-03-18 11:12:21: OCR: [0;97m[104mInstalling module OCR [0m
2023-03-18 11:12:21: OCR: [0;97m[49mDownloading Python 3.7 interpreter...[0m[0;93m[49mChecking 'C:\Program Files\CodeProject\AI\downloads\windows\python37\python37.zip'[0m
2023-03-18 11:12:25: OCR: [0;93m[49mExpanding...[0m[0;92m[49mDone.[0m
2023-03-18 11:12:34: OCR: [0;39m[49mCreating Virtual Environment...[0m[0;92m[49mDone[0m
2023-03-18 11:12:34: OCR: [0;39m[49mEnabling our Virtual Environment...[0m[0;92m[49mDone[0m
2023-03-18 11:12:34: OCR: [0;39m[49mConfirming we have Python 3.7...[0m[0;92m[49mpresent[0m
2023-03-18 11:12:34: OCR: [0;39m[49mEnsuring Python package manager (pip) is installed...[0m[0;92m[49mDone[0m
2023-03-18 11:12:41: OCR: [0;39m[49mEnsuring Python package manager (pip) is up to date...[0m[0;92m[49mDone[0m
2023-03-18 11:12:41: OCR: [0;93m[49mInstalling Python packages from requirements.windows.cuda.txt[0m
2023-03-18 11:14:13: Latest version available is 2.0.8-Beta
2023-03-18 11:14:33: Sending shutdown request to python/FaceProcessing
2023-03-18 11:14:33: Request 'Quit' dequeued for processing (#reqid 85987f0c-5c92-4107-89f5-b8987f6d7ea6)
2023-03-18 11:14:33: Client request 'Quit' in the queue (#reqid 85987f0c-5c92-4107-89f5-b8987f6d7ea6)
2023-03-18 11:14:33: Face Processing: Retrieved face_queue command in Face Processing
2023-03-18 11:14:36: Sending shutdown request to python/ObjectDetectionYolo
2023-03-18 11:14:36: Request 'Quit' dequeued for processing (#reqid ce1bbbfe-d053-4c3b-9f2e-20d78b32ac1d)
2023-03-18 11:14:36: Client request 'Quit' in the queue (#reqid ce1bbbfe-d053-4c3b-9f2e-20d78b32ac1d)
2023-03-18 11:14:36: Object Detection (YOLOv5 6.2): Retrieved objectdetection_queue command in Object Detection (YOLOv5 6.2)
2023-03-18 11:14:38: Module ObjectDetectionYolo has shutdown
2023-03-18 11:14:38: detect_adapter.py: has exited
2023-03-18 11:15:06: Forcing shutdown of python/FaceProcessing
2023-03-18 11:15:06: Module intelligencelayer has shutdown
2023-03-18 11:15:06: face.py: has exited
2023-03-18 11:15:09: ObjectDetectionYolo went quietly
2023-03-18 11:18:38: OCR: [0;39m[49mInstalling Packages into Virtual Environment...[0m[0;92m[49mSuccess[0m
2023-03-18 11:18:39: OCR: [0;39m[49mEnsuring Python package manager (pip) is installed...[0m[0;92m[49mDone[0m
2023-03-18 11:18:41: OCR: [0;39m[49mEnsuring Python package manager (pip) is up to date...[0m[0;92m[49mDone[0m
2023-03-18 11:18:41: OCR: [0;93m[49mInstalling Python packages from requirements.txt[0m
2023-03-18 11:18:48: OCR: [0;39m[49mInstalling Packages into Virtual Environment...[0m[0;92m[49mSuccess[0m
2023-03-18 11:18:48: OCR: [0;97m[49mDownloading OCR models...[0m[0;93m[49mChecking 'C:\Program Files\CodeProject\AI\downloads\OCR\paddleocr-models.zip'[0m
2023-03-18 11:18:55: OCR: [0;93m[49mExpanding...[0m[0;92m[49mDone.[0m
2023-03-18 11:18:55: OCR: [0;93m[49mApplying patch for PaddlePaddle[0m
2023-03-18 11:18:55: OCR: 1 file(s) copied.
2023-03-18 11:18:55: OCR: [0;97m[42mModule setup complete [0m
2023-03-18 11:18:55: Module OCR installed successfully.
2023-03-18 11:18:55: Starting C:\Program Files...ws\python37\venv\Scripts\python "C:\Program Files...AI\modules\OCR\OCR_adapter.py"
2023-03-18 11:18:55:
2023-03-18 11:18:55: ** Module 'Optical Character Recognition' (ID: OCR)
2023-03-18 11:18:55: ** Active: True
2023-03-18 11:18:55: ** GPU: Support enabled
2023-03-18 11:18:55: ** Parallelism: 0
2023-03-18 11:18:55: ** Platforms: windows,linux,macos,macos-arm64
2023-03-18 11:18:55: ** FilePath: OCR_adapter.py
2023-03-18 11:18:55: ** ModulePath: OCR
2023-03-18 11:18:55: ** Install: PostInstalled
2023-03-18 11:18:55: ** Runtime:
2023-03-18 11:18:55: ** Queue: OCR_queue
2023-03-18 11:18:55: ** Start pause: 1 sec
2023-03-18 11:18:55: ** Valid: True
2023-03-18 11:18:55: ** Environment Variables
2023-03-18 11:18:55:
2023-03-18 11:18:55: Started Optical Character Recognition module
2023-03-18 11:18:55: Installer exited with code 0
11:18:55:Module OCR installed successfully.
11:18:55:Starting C:\Program Files...ws\python37\venv\Scripts\python "C:\Program Files...AI\modules\OCR\OCR_adapter.py"
11:18:55:
11:18:55:Module 'Optical Character Recognition' (ID: OCR)
11:18:55:Active: True
11:18:55:GPU: Support enabled
11:18:55:Parallelism: 0
11:18:55:Platforms: windows,linux,macos,macos-arm64
11:18:55:FilePath: OCR_adapter.py
11:18:55:ModulePath: OCR
11:18:55:Install: PostInstalled
11:18:55:Runtime:
11:18:55:Queue: OCR_queue
11:18:55:Start pause: 1 sec
11:18:55:Valid: True
11:18:55:Environment Variables
11:18:55:
11:18:55:Started Optical Character Recognition module
11:18:55:Installer exited with code 0
11:18:56:Module OCR started successfully.
11:18:58:OCR_adapter.py: [2023/03/18 11:18:58] ppocr DEBUG: Namespace(alpha=1.0, benchmark=False, beta=1.0, cls_batch_num=6, cls_image_shape='3, 48, 192', cls_model_dir='paddleocr/ch_ppocr_mobile_v2.0_cls_infer', cls_thresh=0.9, cpu_threads=10, crop_res_save_dir='./output', det=True, det_algorithm='DB', det_db_box_thresh=0.4, det_db_score_mode='fast', det_db_thresh=0.3, det_db_unclip_ratio=2.0, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_east_score_thresh=0.8, det_fce_box_type='poly', det_limit_side_len=960, det_limit_type='max', det_model_dir='paddleocr/en_PP-OCRv3_det_infer', det_pse_box_thresh=0.85, det_pse_box_type='quad', det_pse_min_area=16, det_pse_scale=1, det_pse_thresh=0, det_sast_nms_thresh=0.2, det_sast_polygon=False, det_sast_score_thresh=0.5, draw_img_save_dir='./inference_results', drop_score=0.4, e2e_algorithm='PGNet', e2e_char_dict_path='./ppocr/utils/ic15_dict.txt', e2e_limit_side_len=768, e2e_limit_type='max', e2e_model_dir=None, e2e_pgnet_mode='fast', e2e_pgnet_score_thresh=0.5, e2e_pgnet_valid_set='totaltext', enable_mkldnn=False, fourier_degree=5, gpu_mem=500, help='==SUPPRESS==', image_dir=None, image_orientation=False, ir_optim=True, kie_algorithm='LayoutXLM', label_list=['0', '180'], lang='en', layout=True, layout_dict_path=None, layout_model_dir=None, layout_nms_threshold=0.5, layout_score_threshold=0.5, max_batch_size=10, max_text_length=25, merge_no_span_structure=True, min_subgraph_size=15, mode='structure', ocr=True, ocr_order_method=None, ocr_version='PP-OCRv3', output='./output', precision='fp32', process_id=0, rec=True, rec_algorithm='CRNN', rec_batch_num=6, rec_char_dict_path='C:\\Program Files\\CodeProject\\AI\\modules\\OCR\\bin\\windows\\python37\\venv\\lib\\site-packages\\paddleocr\\ppocr\\utils\\en_dict.txt', rec_image_shape='3, 48, 320', rec_model_dir='paddleocr/en_PP-OCRv3_rec_infer', recovery=False, save_crop_res=False, save_log_path='./log_output/', save_pdf=False, scales=[8, 16, 32], ser_dict_path='../train_data/XFUND/class_list_xfun.txt', ser_model_dir=None, shape_info_filename=None, show_log=True, sr_batch_num=1, sr_image_shape='3, 32, 128', sr_model_dir=None, structure_version='PP-Structurev2', table=True, table_algorithm='TableAttn', table_char_dict_path=None, table_max_len=488, table_model_dir=None, total_process_num=1, type='ocr', use_angle_cls=False, use_dilation=False, use_gpu=True, use_mp=False, use_onnx=False, use_pdserving=False, use_space_char=True, use_tensorrt=False, use_xpu=False, vis_font_path='./doc/fonts/simfang.ttf', warmup=False)
11:19:02:Optical Character Recognition: Running init for Optical Character Recognition
11:19:02:Optical Character Recognition: Optical Character Recognition started.
11:19:26:Client request 'list-custom' in the queue (...881c62)
11:19:26:Client request 'list-custom' in the queue (...2465df)
11:19:29:Client request 'ocr' in the queue (...1d5b5d)
11:19:29:Request 'ocr' dequeued for processing (...1d5b5d)
11:19:29:OCR_adapter.py: [2023/03/18 11:19:29] ppocr WARNING: Since the angle classifier is not initialized, the angle classifier will not be uesd during the forward process
11:19:33:Module OCR has shutdown
11:19:33:OCR_adapter.py: has exited
If I disable GPU, it works just fine:
11:21:45:Starting C:\Program Files...ws\python37\venv\Scripts\python "C:\Program Files...AI\modules\OCR\OCR_adapter.py"
11:21:45:
11:21:45:Module 'Optical Character Recognition' (ID: OCR)
11:21:45:Active: True
11:21:45:GPU: Support disabled
11:21:45:Parallelism: 0
11:21:45:Platforms: windows,linux,macos,macos-arm64
11:21:45:FilePath: OCR_adapter.py
11:21:45:ModulePath: OCR
11:21:45:Install: PostInstalled
11:21:45:Runtime:
11:21:45:Queue: OCR_queue
11:21:45:Start pause: 1 sec
11:21:45:Valid: True
11:21:45:Environment Variables
11:21:45:
11:21:45:Started Optical Character Recognition module
11:21:46:OCR_adapter.py: [2023/03/18 11:21:46] ppocr DEBUG: Namespace(alpha=1.0, benchmark=False, beta=1.0, cls_batch_num=6, cls_image_shape='3, 48, 192', cls_model_dir='paddleocr/ch_ppocr_mobile_v2.0_cls_infer', cls_thresh=0.9, cpu_threads=10, crop_res_save_dir='./output', det=True, det_algorithm='DB', det_db_box_thresh=0.4, det_db_score_mode='fast', det_db_thresh=0.3, det_db_unclip_ratio=2.0, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_east_score_thresh=0.8, det_fce_box_type='poly', det_limit_side_len=960, det_limit_type='max', det_model_dir='paddleocr/en_PP-OCRv3_det_infer', det_pse_box_thresh=0.85, det_pse_box_type='quad', det_pse_min_area=16, det_pse_scale=1, det_pse_thresh=0, det_sast_nms_thresh=0.2, det_sast_polygon=False, det_sast_score_thresh=0.5, draw_img_save_dir='./inference_results', drop_score=0.4, e2e_algorithm='PGNet', e2e_char_dict_path='./ppocr/utils/ic15_dict.txt', e2e_limit_side_len=768, e2e_limit_type='max', e2e_model_dir=None, e2e_pgnet_mode='fast', e2e_pgnet_score_thresh=0.5, e2e_pgnet_valid_set='totaltext', enable_mkldnn=False, fourier_degree=5, gpu_mem=500, help='==SUPPRESS==', image_dir=None, image_orientation=False, ir_optim=True, kie_algorithm='LayoutXLM', label_list=['0', '180'], lang='en', layout=True, layout_dict_path=None, layout_model_dir=None, layout_nms_threshold=0.5, layout_score_threshold=0.5, max_batch_size=10, max_text_length=25, merge_no_span_structure=True, min_subgraph_size=15, mode='structure', ocr=True, ocr_order_method=None, ocr_version='PP-OCRv3', output='./output', precision='fp32', process_id=0, rec=True, rec_algorithm='CRNN', rec_batch_num=6, rec_char_dict_path='C:\\Program Files\\CodeProject\\AI\\modules\\OCR\\bin\\windows\\python37\\venv\\lib\\site-packages\\paddleocr\\ppocr\\utils\\en_dict.txt', rec_image_shape='3, 48, 320', rec_model_dir='paddleocr/en_PP-OCRv3_rec_infer', recovery=False, save_crop_res=False, save_log_path='./log_output/', save_pdf=False, scales=[8, 16, 32], ser_dict_path='../train_data/XFUND/class_list_xfun.txt', ser_model_dir=None, shape_info_filename=None, show_log=True, sr_batch_num=1, sr_image_shape='3, 32, 128', sr_model_dir=None, structure_version='PP-Structurev2', table=True, table_algorithm='TableAttn', table_char_dict_path=None, table_max_len=488, table_model_dir=None, total_process_num=1, type='ocr', use_angle_cls=False, use_dilation=False, use_gpu=False, use_mp=False, use_onnx=False, use_pdserving=False, use_space_char=True, use_tensorrt=False, use_xpu=False, vis_font_path='./doc/fonts/simfang.ttf', warmup=False)
11:21:49:Optical Character Recognition: Running init for Optical Character Recognition
11:21:49:Optical Character Recognition: Optical Character Recognition started.
11:22:20:Client request 'ocr' in the queue (...1cd44a)
11:22:20:Request 'ocr' dequeued for processing (...1cd44a)
11:22:20:OCR_adapter.py: [2023/03/18 11:22:20] ppocr WARNING: Since the angle classifier is not initialized, the angle classifier will not be uesd during the forward process
11:22:20:OCR_adapter.py: [2023/03/18 11:22:20] ppocr DEBUG: dt_boxes num : 8, elapse : 0.031999826431274414
11:22:20:OCR_adapter.py: [2023/03/18 11:22:20] ppocr DEBUG: rec_res num : 8, elapse : 0.5889990329742432
11:22:20:Optical Character Recognition: Retrieved OCR_queue command
11:22:20:Optical Character Recognition: Queue and Processing Optical Character Recognition command 'ocr' (...1cd44a) took 639ms
11:22:20:Response received (...1cd44a)
System Info:
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: 1 CPU x 12 cores. 20 logical processors (x64)
GPU: NVIDIA GeForce RTX 4070 Ti (12 GiB) (NVidia)
Driver: 531.29 CUDA: 12.1 Compute: 8.9
System RAM: 64 GiB
Target: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
.NET framework: .NET 7.0.3
System GPU info:
GPU 3D Usage 1%
GPU RAM Usage 1.1 GiB
Video adapter info:
Citrix Indirect Display Adapter:
Adapter RAM 0
Driver Version 12.40.44.247
Video Processor
NVIDIA GeForce RTX 4070 Ti:
Adapter RAM 4 GiB
Driver Version 31.0.15.3129
Video Processor NVIDIA GeForce RTX 4070 Ti
Intel(R) UHD Graphics 770:
Adapter RAM 1,024 MiB
Driver Version 31.0.101.4091
Video Processor Intel(R) UHD Graphics Family
Global Environment variables:
CPAI_APPROOTPATH = C:\Program Files\CodeProject\AI
CPAI_PORT = 32168
|