Skip to main content

Profile Dx App

Project description

Waffle Profiler

Dx 인퍼런스 분석 툴
Dx에 App을 설치하고 영상을 인퍼런스한 후 로그를 남긴다.
남긴 로그와 영상 파일을 읽어와 화면에 인퍼런스 결과를 보여주는 기능도 제공한다.

사용법

설치

$ pip install dx-profiler

sudo 등록

dx-profiler는 dx쪽에 영상을 복사하는 과정에서 sudo 권한이 필요하다.
이를 위해 dx-profiler를 sudo에서 실행할 수 있도록 secure_path에 추가해준다.

예시)

$ which dx-profiler
/home/yoon/.cache/pypoetry/virtualenvs/dx-profiler-MxXHGb83-py3.10/bin/dx-profiler
$ sudo visudo
...

Defaults secure_path="/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/yoon/.cache/pypoetry/virtualenvs/dx-profiler-MxXHGb83-py3.10/bin"

...

인퍼런스

autocare_docker 레포를 clone한 후 dx-batch 브랜치로 checkout한다.
docker compose up -d 로 dx 도커를 실행시킨 후 dx-profiler를 실행한다.

필요한 값

  • 영상 파일 (-F)
  • 앱 (-A)
  • 로그 (-O)

예시)

$ sudo dx-profiler inference -F /mnt/hdd/videos/test_videos/helmet.mp4 --app ~/Downloads/aff0d790-8e15-47f4-874c-7320dc3673f9.zip -O log.txt

성공적으로 실행되면 영상 인퍼런스가 끝날때 까지 Waiting for EOS...를 출력하며 종료되면 Done.을 출력하고 종료된다.

영상확인

생성한 로그 기반으로 영상을 재생한다.

예시)

$ sudo dx-profiler profile -F log.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dx_profiler-0.1.3.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dx_profiler-0.1.3-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file dx_profiler-0.1.3.tar.gz.

File metadata

  • Download URL: dx_profiler-0.1.3.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

File hashes

Hashes for dx_profiler-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b9602fb6f2bd455f2150a026cf2410e2e8241e26acc6b194d3c3ea003e784e8a
MD5 e105b60f0504e99b0487d5fd03885bb9
BLAKE2b-256 bc525a9a7f0f15132e64394849dad34e047b49fab1b7481ba6419a86c27811d3

See more details on using hashes here.

File details

Details for the file dx_profiler-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dx_profiler-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure

File hashes

Hashes for dx_profiler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cff8f75d9f1285b82bf53313b80cb06594f168f95feeefcdf1b7bf508603d9de
MD5 954825feddbfa0375aeb5a2bdc9699cc
BLAKE2b-256 5d8513ec36d0d80854f4fa8fb85c14948403af9d1efca8332bc5ec7dee7c690a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page