• AI = > seq2seq + attention + transformer (short)


    Data preprocessing (tf20 keras preprocessing) Our own common dataset (common) It mainly uses the three modules (image, text, sequence) in tensorflow.keras.preprocessing.Text: it can be used to (count word frequency, word division, word 2’id, ID 2’word, etc.)Sequence can (structure sentence (fill 0, cut length)) From tensorflow.keras.preprocessing.text import tokenizer ා trunk, sentence code From tensorflow. Keras. Preprocessing. […]

  • AI image basics-02


    Catalog Image coordinate system Image digitization Image coordinate system In the previous data annotation article, we talked about how to annotate, and four coordinate points will be retained after annotation, so how do these coordinate points represent the position in the picture? To represent the position of a point or figure, we need to involve […]

  • Spiral matrix I, II, III


    Helix Matrix I Source: https://leetcode-cn.com/probl Simple solution: set the boundary and simulate. class Solution { public List<Integer> spiralOrder(int[][] matrix) { List<Integer> ans = new ArrayList<>(); int t = 0, b = matrix.length – 1; int l = 0, r = matrix[0].length – 1; while (true) { for (int j = l; j <= r; j++) […]

  • GitHub actions Guide


    GitHub actions Guide GitHub actions enables you to create custom workflows directly in your GitHub library. Workflow refers to automated processes, such as build, test, package, publish, deploy, etc., which means you can directly conduct CI (continuous integration) and CD (continuous deployment). Basic concepts Workflow: a workflow workflow is a complete process. Each workflow contains […]

  • [machine learning practice] calculate pair wise distances of two matrices


    Each row in a matrix is a sample. To calculate the distance between two matrix samples, i.e. pair wise distances, you can use the function in sklearn or SciPy to facilitate calculation. sklearn: sklearn.metrics.pairwise_distances SciPy: scipy.spatial.distance’matrix (for p-norm) or scipy.spatial.distance.cdist (all commonly used distance metrics) Compare the running time of the three: (calculate the Euclidean […]

  • Realizing zero delay of video and audio is a standard zero sum game


    As a real-time audio and video industry, we put forward many reasons why we can’t push video with zero delay, which mainly focus on the network capacity or intermittence, the cost of expanding low delay solutions, and even the limitations of off the shelf processors to process 4K Ultra HD or high dynamic range (HDR) […]

  • Tensor decomposition and application learning notes [02]


    3. Tensor rank and candecomp / PARAFAC decomposition 3.0 definition of candecomp / PARAFAC decomposition method Candecomp (canonical decomposition) and PARAFAC (parallel factors) are a method of splitting tensors. Their core idea is to express the tensors (approximately) by the sum of finite rank 1 tensors. This method has been found independently by many people, […]

  • Matrix multiplication optimization


    Preface From Xudong’s blog, I saw a blog: matrix multiplication optimization combined with dynamic programming solution, which is quite interesting. Here’s a reprint [slightly modified]. problem Matrix multiplication satisfies the combination law, but not the commutation law. For example, matrix $a {AB}, B {BC}, C {CD} $are multiplied to get matrix $s {ad}$ \[ S_{ad}=A_{ab} B_{bc} […]

  • What is the world matrix in cocos creator


    What is the world matrix in cocos creator 1. (matrix) what is matrix and what is its use Matrix a magical existence? Is the meaning of the values in the development process scratching your ears and scratching your cheeks? Today, we’re going to break the mystery. Due to the large amount of content, the “worldmatrix” […]

  • Solution of linear equation for perspective transformation with four vertex correction (Reprint)


    Turn fromhttp://www.hanyeah.com/blog/post/%E5%9B%9B%E9%A1%B6%E7%82%B9%E6%A0%A1%E6%AD%A3%E9%80%8F%E8%A7%86%E5%8F%98%E6%8D%A2%E7%9A%84%E7%BA%BF%E6%80%A7%E6%96%B9%E7%A8%8B%E8%A7%A3.html The design gives two pictures, a top view a and a side view B. the points on a should be mapped to B, and the points on B should be mapped to a. How do you do it? There are only two pictures We can get the coordinates of the four vertices of […]

  • OpenGL axis conversion


    Axis of coordinates translation rotate zoom Reset axis Matrix operation Example 1. Coordinate axis The right-hand coordinate system used by OpenGL looks at the origin from the front, and counter clockwise rotation is considered as positive rotation. X axis: left to right Y-axis: from bottom up Z axis: from the back of the screen to […]

  • Detailed Explanation of the Use of CSS3 Matrix


    Change of CSS3 matrix. Application format is: transform: matrix(a,b,c,d,e,f); Corresponding to: The transformation in practical application is: Among them: Ax + CY + e = abscissa BX + dy + F = ordinates Why 001 more? Because, in order to collect parameters. Translate matrix The basic format is: Transform: matrix (1, 0, 0, 1, X, […]