분류 전체보기 (83) 썸네일형 리스트형 Mobilenet(Segmentation) mobilenetv2 구조 설명: MobileNetV2는 Depthwise separable convolution을 수정한 구조를 제안합니다.제안된 Convolution Block은 Inverted Residuals와 Linear Bottlenecks를 사용하여 성능을 향상시킵니다. relu구조상 입력 값이 채널수가 적은 ReLU 함수 계층을 거치면 정보가 손실됩니다.반면에 입력 값이 채널수가 많은 ReLU 함수 계층을 거치면 정보가 보존됩니다따라서 ReLU 함수를 사용할 때는 해당 레이어에 많은 채널 수를 사용하고, 해당 레이어에 채널 수가 적다면 선형 함수를 사용합니다. Inverted Residuals와 Linear Bottleneck의 등장 배경임. ViT 구조 : https://dae.. python 자료형들 [dictionary] dictionary 는 hash table 이라고 보시면 되겠습니다. 어떤 key 와 value 를 함께 element 로 삽입을 한 후, 향후 그 value 가 필요할 때는 key 를 이용하여 빠르게 검색하기 위한 것입니다. dictionary 를 표현할 때는 중괄호('{}') 를 사용합니다. [counter] collections 모듈의 Counter 클래스는 별도 패키지 설치 없이 파이썬만 설치되어 있다면 다음과 같이 임포트해서 바로 사용할 수 있습니다. from collections import Counter Counter 생성자는 여러 형태의 데이터를 인자로 받는데요. 먼저 중복된 데이터가 저장된 배열을 인자로 넘기면 각 원소가 몇 번씩 나오는지가 저장된 객체를 얻게 됩니.. [python] mp4 file streaming with gstreamer gstreamer을 이용해 file을 streaming 하는 코드이다. gstmeamer 설치후, 아래 내용을 python으로 돌리자. GstRTSPServer 을 통해 mp4를 실시간 스트리밍 할 수 있다. gi를 설치하는데 상당히 애를 먹었었다. >> pip install PyGObjec 에러 뜨면, 에러를 자세히 읽은 다음, 설치하란거 설치하면 된다. 아래 코드의 내용은, GstRTSPServer을 통해, mp4파일을 "rtsp://localhost:{PORT}/{MOUNTPOINT}" 의 url을 통해 송출한다. 아래 파일실행후, 아래 명령어를 통해서 스트림이 잘 나오는지 확인할 수 있다. ffprobe -v verbose -show_packets "rtsp://localhost:8554/test.. [인프런 공룡책 ] 03. 프로세스의 이해 1부 프로세스란? ( = program in execution ) ( 프로세스를 관리하는것은 os ) 정의 : 실행중인 프로그램을 "프로세스"라고 한다. 운영체제 입장에서는 프로그램을 실행시켜주는것, 작업의 단위가 프로세스 이다. 하나의 프로세스가 실행되기 위해 cpu, memory, files, io 와 같은 리소스를 관리 할 수 있어야 한다. cpu가 메모리에 있는 인스트럭션들을 하나씩 fetch해와서 cpu에서 execute 하는걸 컴퓨터라고 한다.실행파일은 하드에 저장되어있다. 실행파일을 실행하면, 이를 메모리에 올린다. 이 메모리에 올라간걸 프로세스라고 한다.OS는 프로세르를 관리해야한다. 여러개의 섹션으로 나뉘어져 있는 프로세스, 프로세스의 구조를 보면텍스트 섹션데이터 섹션(전역변수 부분 )힙 .. ffmpeg 커맨드 구간 편집, 크기변환 ffmpeg 크기변환 ffmpeg -i input.mp4 -vf scale=720:480 output.mp4 ffmpeg framerate -filter:v fps=fps=30 ffmpeg 구간 자르기 ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output1.mp4 [leetcode curated algo 170] 256. Paint house (C++) 256. Paint House There is a row of n houses, where each house can be painted one of three colors: red, blue, or green. The cost of painting each house with a certain color is different. You have to paint all the houses such that no two adjacent houses have the same color. The cost of painting each house with a certain color is represented by an n x 3 cost matrix costs. For example, costs[0][0] i.. 823. Binary Trees With Factors (python) Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree using these integers, and each number may be used for any number of times. Each non-leaf node's value should be equal to the product of the values of its children. Return the number of binary trees we can make. The answer may be too large so return the answer modulo 10^9 + 7. 한줄요약 .. [이해 쉬움!] Data imbalance 해결을 위한 focal loss 해당글은 medium 원문을 읽고, 이해하는 글입니다. 이해 못했으면 댓글달아주세요 +_+ https://towardsdatascience.com/a-loss-function-suitable-for-class-imbalanced-data-focal-loss-af1702d75d75 A Loss Function Suitable for Class Imbalanced Data: “Focal Loss” Deep Learning with Class Imbalanced Data towardsdatascience.com 1단계 검출기는 빠르지만, 정확도가 2 단계 검출기의 10~40% 정도입니다. 이때, 1단계 검출기가 2단계 검출기만큼 정확도를 얻지 못하는 주요 요인은, 클래스 불균형입니다. 이미지에서 20000개의.. 이전 1 ··· 4 5 6 7 8 9 10 11 다음