-
[Deep Learning]ONNX Runtime C++(2): Inferencing ONNX Model of Dynamic Input/Output Size Using CUDA
Some ONNX models have dynamic input/output size: In the above example, onnxruntime will set dimensions of batch_size, height, width to -1. NOTE: I tested it on onnxruntime v1.13.1 and onnxruntime-win-x64-gpu-1.13.1.zip. Some tips to avoid runtime errors(these errors often happen, and waste me a lot of time😱): We should Specify its shape when creating input tensors,…
-
[UE5]Set Fixed Camera in the Scene
After adjusting the camera’s parameter, now we can get: Error happened.
-
[Deep Learning]ONNX Runtime C++(1):DL Model Inference Using ONNX Runtime
Example: FnsCandyStyleTransfer This example is based on microsoft/onnxruntime-inference-examples. I use Windows x64 platform, so LibPNG is a dependency: Compile and use libpng and zlib in Visual Studio References Error happened.
-
[UE5]Unreal Engine Source Build
Fork and Clone UnrealEngine Build References Error happened.
-
[3D Math]Vectors
Vectors are important to 3D world, especially Vector3. Math Basics Vectors are easy to understand compared to 3D rotations, but not all of them are straightforward. I will extract some important notes about 3D vectors. Cross Product derivative process We know: Then we can get: Finally: Interpolation linear interpolation Linear interpolation can not guarantee the…
-
[UE5] How to Use Perforce as Source Control
1 Download and Install Perforce Two ways of running the Perforce server: Once the service is running, you can connect to your server using P4Admin. 2 Download and Install P4V On the Helix Visual Client download page, we download the P4V. Install it, nothing special. P4V will be running then. 3 Use Case p4Ignore References…
-
[Dive into C++] Templates, Forwarding Reference, Perfect Forwarding, Data Type Deduction
Templates Template Class with a Specialized Method Template Class with a Templated Method Template Class with a Class Partial Specialization NOTE: Only templated classes may be partially specialized; templated methods must be fully specialized. Variadic Templates, Parameter Pack Solve sum example: Forwarding Reference Perfect Forwarding Data Type Deduction Examples Deduce const: Forwarding reference: References Error…
-
[Dive into C++] Semantics, Smart Pointers
1 Semantics Semantics 3 category: Semantics is an attribute of a data type. 1.1 Value Semantics / Copy Semantics 1.2 Move Semantics 1.3 Reference Semantics / Pointer Semantics 2 Smart Pointers C++11 introduces: They are all containers for a raw pointer. 2.1 unique_ptr 2.2 shared_ptr 2.3 weak_ptr References Error happened.
-
OpenCV C++ Crash Course Notes: Samples
Binary Image: 0 or 1 Gray Scale Image: RGB Image: Importing Images Importing Video Webcam Reading Processing: Gray, Blur, Canny Edge Detector Processing: Dilate, Erode Resize Crop Region of Interest(RoI) Draw Shapes & Text Warping Color Detection & Trackbar Detect Shapes & Contours Face Detection References Error happened.
-
[DevLog] It seems I have some bugs to fix… but strangely it’s a bit of cool.
In unreal 5.1, I extract the frame in rendering pipeline, and then process it on CPU, then feed it back to GPU. Ouch! Error happened.