전체 글

전체 글

    [PyQt5] QGraphicsView로 웹캠 영상 스트리밍하는 데모 만들기

    사각형 드래그 가능 우클릭 누르면 마지막에 그린거 삭제 됨 import sys import cv2 from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QPushButton, QFileDialog, QLabel, QGraphicsView, QGraphicsScene from PyQt5.QtWidgets import QHBoxLayout, QVBoxLayout from PyQt5.QtGui import QPixmap, QImage, QPainter, QPen, QColor, QBrush from PyQt5.QtCore import QPointF, QRectF, Qt, QTimer class GraphicView(QGraphicsView): def..

    [PyQt5] QGraphicsView로 Canvas 구현하기

    Pyqt5로 캔버스 구현하기. 근데 QLabel 대신 QGraphicsView 사용. import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QPushButton, QFileDialog, QLabel, QGraphicsView, QGraphicsScene from PyQt5.QtWidgets import QHBoxLayout, QVBoxLayout from PyQt5.QtGui import QPixmap, QImage, QPainter, QPen, QColor, QBrush from PyQt5.QtCore import QPointF, QRectF, Qt class GraphicView(QGraphicsView): def __i..

    Video Swin Transformer 환경설정 및 실행

    https://github.com/SwinTransformer/Video-Swin-Transformer 많은 에러를 마주쳤으나 기억이 나지 않는다.. 꼭 해야 할 것들만 기록해본다. 환경설정 apex 내 GPU는 3090인데, RTX 30 시리즈에서 버전 호환문제로 apex 설치가 잘 되지 않았다. 이거 때문에 삽질을 오래 했는데... 다행히 NGC에서 이를 해결한 이미지를 제공하고 있었다. 아래 이미지로 도커 환경을 세팅하였다. https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch/tags PyTorch | NVIDIA NGC PyTorch is a GPU accelerated tensor computational framework. Functi..

    [Opencv] draw event

    import numpy as np import cv2 from math import sqrt, pow img = np.zeros((512, 512, 3), np.uint8) img_ = img.copy() drawing = False mode = True (ix, iy) = (-1, -1) windowName = 'Drawing' cv2.namedWindow(windowName) green = (0, 255, 0) red = (0, 0, 255) def draw(event, x, y): global ix, iy, drawing, mode, img, img_ if event == cv2.EVENT_LBUTTONDOWN: drawing = True (ix, iy) = x, y elif event == cv2..

    [논문리뷰] RepVGG: Making VGG-style ConvNets Great Again

    [논문리뷰] RepVGG: Making VGG-style ConvNets Great Again

    RepVGG: Making VGG-style ConvNets Great Again (CVPR, 2021) - GitHub - DingXiaoH/RepVGG: RepVGG: Making VGG-style ConvNets Great Again GitHub - DingXiaoH/RepVGG: RepVGG: Making VGG-style ConvNets Great Again RepVGG: Making VGG-style ConvNets Great Again. Contribute to DingXiaoH/RepVGG development by creating an account on GitHub. github.com Abstract 본 논문에서는 training 시에는 ulti-branch 토폴로지를 갖지만, inf..