Kyosuke

Kyosuke

124. Preprocessing for Deepstream

I found out why my TensorRT engine model was not working as expected. I messed up with configuring the preprocessing step for Deepstream. When you use Deepstream to run inference, there is a property called net-scale-factor and offsets which you…

122. Extracting Inference Results Using C

A semantic segmentation model outputs a tensor shaped [Batch_size,Channel(Number of Classes),Img_Height,Img_Width] (If using Pytorch), but if you convert that to a TensorRT engine for faster inference, the output is flattened to a 1d array. Therefore the shaping being, [(Batch_size)X(Channel)X(Img_Height)X(Img_Width),] Considering…

121. Unet++

Unet++ is useful when you want to improve image segmentation accuracy. This was first designed for medical use where accuracies are critical. In a nutshell, Unet++ adds convolution layers between skip connection. The original Unet skip connect without any additional…

118. Pre-Fetching Data

Pre-fetching your data can help your data pre-processing pipeline more smoother. Without pre-fetching, the cpu would wait for the process in the GPU to end, and then start to prepare the next data. You can do this process in parallel…

116. Active Machine Learning

Labeling Data is time-consuming and boring. Active Machine Learning may help reduce that labeling process down to 10~20%. Fig.1 – Active Learning Workflow The basic workflow is as follows: 1. Label Data Partially 2. Train Model only with the labeled…

115. Jacobian Matrix

Jacobian Matrix is a matrix which stores all the partial derivatives for multiple functions. For example, let’s consider ex1 (top left). F(x) is a function containing 1 variable. If you calculate the derivative of F(x) it would be 2x. Now,…