JVM tuning (10) JVM runtime data area

1. Overview For C C++, in the field of memory management, the JVM not only has the highest rights, but at the same time they are workers doing the most basic work, because they are responsible for the maintenance of each object from beginning to end. For Java, with the help of virtual machine automatic […]

CoDeSys series-3, Windows runtime software PLC master station and p-net slave station IO device network test

CoDeSys series-3, Windows runtime soft PLC master station and p-net slave station IO device network test Article directory CoDeSys series-3, Windows runtime software PLC master station and p-net slave station IO device network test I. Introduction 2. Software PLC configuration programming during Windows runtime 1. Install the runtime extension package under Windows (not necessary) 2. […]

Solve include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory under Ubuntu

Table of Contents Solve include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory under Ubuntu 1. Confirm that CUDA is installed correctly Step 1: Download CUDA Toolkit Step 2: Install CUDA Toolkit 2. Add the path to CUDA 3. Install NVIDIA driver Step 1: Execute the following command in the terminal to add the NVIDIA […]

Research on large picture and small target photovoltaic production barcode detection based on YOLOV8+ moving window slicing (full version) + OnnxRuntime + KMeans + Zbar + traditional image processing algorithm

Article directory Preface 1 Project background 2. Training the one-dimensional code detection model of YOLOV8 3 Read test pictures 3.1 Adjust the position of the first window 4 Create a sliding window with a window size of (640, 640) and a moving distance of 160. Fill the window that is less than (640, 640) 5 […]

C++ Standard Templates (STL) – Type support (runtime type recognition, type_index)

Run-time type identification Defined in the header file A wrapper for type_info objects, which can be used as an index into associative containers and unordered associative containers std::type_index class type_index; (C++11 onwards) Member functions (Constructor) Construct object (Public member function) (destructor) (implicit declaration) Destroy the type_index object (Public member function) operator= (implicit declaration) Assign a […]

C++ Standard Templates (STL) – Type support (runtime type recognition, type_info)

Run-time type identification Defined in the header file Contains information of a certain type, generated by the implementation. This is the class returned by the typeid operator. std::type_info Defined in the header file class type_info; Class type_info holds implementation-specific information about a type, including the type’s name and methods for comparing two types for equality […]

Small target detection in large images – Barcode detection research based on YOLOV8+OnnxRuntime deployment+sliding window+Zbar

Article directory Preface 1 Train a YOLOV8 one-dimensional code detection model 2 Create a sliding window 2.1 Module import and test picture display 2.2 Create sliding window detection, the window size is (640,640), and the sliding distance is 640. Fill the window with less than (640, 640) 3 Create onnxruntime inference engine 3.1 Reasoning test […]

OpenMMlab exports swin-transformer model and uses onnxruntime and tensorrt for inference

Export onnx file It is very easy to export the onnx file of swin-transformer through mmpretrain. Note that you need to set opset_version=12. This is a pitfall. The opset_version=11 set at the beginning will cause problems when converting trtengine later. import torch from mmpretrain import get_model, inference_model model = get_model(‘swin-tiny_16xb64_in1k’, pretrained=’swin_tiny_224_b16x64_300e_imagenet_20210616_090925-66df6be6.pth’, device=’cpu’) input = torch.zeros(1, […]

ONNX runtime local terminal deployment

1. class_index.csv file: ID,English,Chinese 0,A,you 1,B,I 2,C,him 3,D,she 2. classification.onnx 3. The single image processing code is as follows: import onnxruntime import torch import torch.nn.functional as F import pandas as pd from PIL import Image from torchvision import transforms import matplotlib.pyplot as plt def predict_class(model_path, image_path, class_index_path, top_n=1): # Load the ONNX model and create […]