33. Time zone in Flink’s Table API and SQL

Flink series of articles 1. Flink column The Flink column systematically introduces a certain knowledge point and explains it with specific examples. 1. Flink deployment series This section introduces the basic content related to the deployment and configuration of Flink. 2. Flink basic series This part introduces the basic parts of Flink, such as terminology, […]

[Java] Timing tasks – Timer/TimerTask source code principle analysis

1. Background and usage When implementing various server-side systems on a daily basis, we will definitely have the need for some scheduled tasks. For example, automatic reminders for meetings half an hour in advance, scheduled/periodic execution of asynchronous tasks, etc. So how to implement such a scheduled task system? The Timer class provided by Java […]

C# Onnx LSTR Transformer-based end-to-end real-time lane line detection

Table of Contents Effect Model information project code download Effect End-to-end real-time lane line detection Model information lstr_360x640.onnx Inputs ———————– name: input_rgb tensor: Float[1, 3, 360, 640] name: input_mask tensor: Float[1, 1, 360, 640] ————————————————– ————- Outputs ———————– name:pred_logits tensor:Float[1, 7, 2] name:pred_curves tensor:Float[1, 7, 8] name:foo_out_1 tensor:Float[1, 7, 2] name:foo_out_2 tensor:Float[1, 7, 8] name:weights […]

OpenMMlab exports the yolov3 model and uses onnxruntime and tensorrt for inference

Export onnx file Use script directly import torch from mmdet.apis import init_detector, inference_detector config_file = ‘./configs/yolo/yolov3_mobilenetv2_8xb24-ms-416-300e_coco.py’ checkpoint_file = ‘yolov3_mobilenetv2_mstrain-416_300e_coco_20210718_010823-f68a07b3.pth’ model = init_detector(config_file, checkpoint_file, device=’cpu’) # or device=’cuda:0′ torch.onnx.export(model, (torch.zeros(1, 3, 416, 416),), “yolov3.onnx”, opset_version=11) The exported onnx structure is as follows: The output is the output of three different levels of detection heads. If you […]

Use cdc technology to synchronize data in real time (canal) – monitor local data and synchronize data to the cloud database through MQ

Use cdc technology to synchronize data in real time (canal) – monitor local data and synchronize data to the cloud database through MQ 1. Download the canal package and modify the configuration file conf -> instance.properties under example canal.instance.master.address=192.168.8.211:3306 Change the connection database path canal.instance.dbUsername=root user account to connect to the database canal.instance.dbPassword=123456 User password […]

Data structure – time complexity and space complexity

1. Algorithm efficiency 1.1 Complexity of algorithm After the algorithm is written into an executable program, it takes time, resources and space to run. ( Memory ) resource . therefore Measuring the quality of an algorithm, generally Measured from two dimensions: time and space , namely time complexity and space complexity. Time complexity mainly measures […]