본문 바로가기

전체 글

ARM GCC Inline assembly coding 1. Basic Example 2. Syntax 3. Input/ouput operands and Constraint string ※ 어셈블리는 컴파일러 마다 문법이 다르다. 1. Basic Example ex1) MOV R0, R1 : __asm volatile("MOV R0, R1"); or asm ("MOV R0, R1"); ex2) LDR R0, [R1] LDR R1, [R2] ADD R1, R0 STR R1, [R3] 위의 식은 아래와 같이 표현 가능하다. void fun_add(void) { __asm volatile ("LDR R0,[R1]"); __asm volatile ("LDR R1,[R2]"); __asm volatile ("ADD R1,R0"); __asm volatile ("STR.. 더보기
RNN & LSTM 설명 및 구현(pytorch) ※ 본 포스팅은 아래 링크 문서 및 다수 파이토치 포럼 글을 참고하여 만든것 입니다. pytorch.org/tutorials/beginner/nlp/sequence_models_tutorial.html 참고) LSTM 설명 포스팅 참고) Time Series Forecasting using LSTM 1) LSTM in Pytorch 1-1) Pytorch 사용법 1-2) LSTM 사용시 궁금한 부분과 모은 답변 1-3) Multivariate time series (anomaly) data using LSTM 1) LSTM in Pytorch "Sequence models are central to NLP: they are models where there is some sort of dependence.. 더보기
Density Estimation (in Python) ※ scikit-learn.org/stable/modules/density.html 2.8. Density Estimation — scikit-learn 0.24.1 documentation 2.8. Density Estimation Density estimation walks the line between unsupervised learning, feature engineering, and data modeling. Some of the most popular and useful density estimation techniques are mixture models such as Gaussian Mixtures (GaussianMixture scikit-learn.org 아래 글은 본 링크 글을 번역한.. 더보기
[JetsonNano] 부팅 시 코드 자동 실행 방법 Jetson Nano는 리눅스 OS가 포팅되어 있고, 리눅스는 시작시 /etc/init.d 디렉토리 내부의 스크립트를 실행하도록 되어 있다. 따라서 이 디렉토리 내부에 실행하기 위한 코드를 삽입해 준다. 1) 해당 디렉토리로 이동하여, 부팅되자 마자 실행할 스크립트(e.g. start.sh)를 생성해 준다. $ cd /etc/init.d $ vi start.sh #!/bin/bash (실행하고자 하는 것) 2) 스크립트 실행 권한을 주고 등록한다. - 실행 순서도 등록 할 수 있으며, 빈칸으로 둬도 된다. - update-rc.d는 시스템 부팅과 종료에 관여하는 스크립트 관리기 이다. $ chmod +x start.sh $ update-rc.d start.sh defaults (실행순서) 출처) wiki.. 더보기
2) JetsonNano 개발 환경 구성 + 카메라, ROS (rev3) Contents 1) 개발 환경 구성 1-1) 설치법 (Jetson Nano / Rasberry Pi4 사양 비교) 1-2) Jetson Fan 구동 명령 1-3) HOST에서 Serial로 연결 2) 센서 구동 2-1) 카메라 2-2) 카메라 on ROS, 설치 부터 실행까지 2-3) Docker on JetsonNano 2-4) [Optional] OpenCV 설치 2-5) 리얼센스(RealSense) 사용 2-6) [Optional] SLAM Library 설치 2-6) 라이다 - 카메라 라이다 켈리브레이션 - Ros2로 Lidar 구동 - ORB SLAM on JetsonNano 1) 개발 환경 구성 1-1) 설치법 (Jetson Nano / Rasberry Pi4 사양 비교) https://dh.. 더보기
000_ARM Contents ARM과 관련하여 알아야할 내용들을 정리해 나갈 예정입니다. 필수 지식은 아니며, 알아두면 새로운 Soc 및 개발 환경을 만났을 때 Learning Curve를 줄여줄 수 있습니다. ARM Product - ARM Product 관련 문서 번역(Cortext-M3) ARM Product 관련 문서 번역(Cortext-M3) Cortext-M3는 대표적인 Armv7-M 계열의 제품이다 (번역을 시작하게 된 계기) ARM 아키텍쳐는 높은 시장 선점율에도 불구하고, '여러 요소'들로 추상화 되어 있어 이해에 대한 필요성을 느끼기 쉽지 않 dhpark1212.tistory.com - Core Register and CMSIS - ARM GCC Inline assembly coding ARM ToolChain -.. 더보기
Cortex-M3/M4 Utils ▶ printf using SWV -> ITM trace funtionality - M3 이상에서만 가능한 기능 - printf 는 SWD(Serial Wire Debug) 인터페이스의 SWO(Serial Wire Ouput) 핀을 이용해 구현할 수 있다. - SWD는 3pin 인터페이스로 ARM의 Debug 인터페이스에 접근 가능하다. - SWD는 JTAG의 디버깅 하기 위한 핀 갯수(GND 제외 4개)를 간소화 하기 위해 제작되었다. ▶ printf using semihosting - 위의 1번 기능을 사용할 수 없는 경우 사용한다. - syscall.c 파일은 같이 빌드하지 않는다. www.udemy.com/course/embedded-system-programming-on-arm-cortex-m3.. 더보기
[NIPS 2020] Batch Normalization Biases Residual Blocks Towards the Identity Function in Deep Networks. De, S. and Smith, S. Batch Normalization Biases Residual Blocks Towards the Identity Function in Deep Networks. De, S. and Smith, S, In NIPS 2020. "We show that this key benefit arises because, at initialization, batch normalization downscales the residual branch hidden activations on the residual branch relative to the skip connection, by a normalizing factor on the order of the square root of the network depth" ==.. 더보기