'프로그램 사용'에 해당되는 글 2429건

  1. 2020.10.20 google coral, ubuntu 18.04
  2. 2020.10.14 DHCP hostname
  3. 2020.10.14 kibana
  4. 2020.10.14 grafana
  5. 2020.10.14 zabbix
  6. 2020.10.14 prometheus
  7. 2020.10.06 rancher
  8. 2020.10.06 google coral
  9. 2020.10.06 yolo on rpi?
  10. 2020.09.24 /dev/tty 를 sudo 쓰지 않고 사용하기

구글 코랄 TPU USB를 한번 사용해 봄

일단은 설치된 python의 버전을 확인해야 하는데 버전에 맞지 않는 런타임을 설치할 경우

아래와 같이 not a supported wheel on this platform 이라는 에러가 발생한다.

$ pip3 install https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp38-cp38-linux_x86_64.whl
tflite_runtime-2.1.0.post1-cp38-cp38-linux_x86_64.whl is not a supported wheel on this platform.
$ python3 --version
Python 3.6.9

[링크 : https://coral.ai/docs/accelerator/get-started/]

 

dmesg로 확인해보니.. 다음과 같이 나온다.

[  957.819504] usb 2-1.2: new high-speed USB device number 4 using ehci-pci
[  957.928960] usb 2-1.2: New USB device found, idVendor=1a6e, idProduct=089a, bcdDevice= 1.00
[  957.928968] usb 2-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

 

lsusb로는 아래와 같이

Bus 002 Device 004: ID 04f2:b242 Chicony Electronics Co., Ltd 
Bus 002 Device 009: ID 1a6e:089a Global Unichip Corp
Bus 002 Device 008: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy (MTP)
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

lshw로 확인해보면 아래와 같이 UNCLAIMED 라고 뜬다.

Global Unichip corp를 검색해보니 asic 설계 서비스 회사, Fabless 회사라고 나오네.

              *-usb
                   description: USB hub
                   product: Integrated Rate Matching Hub
                   vendor: Intel Corp.
                   physical id: 1
                   bus info: usb@2:1
                   version: 0.00
                   capabilities: usb-2.00
                   configuration: driver=hub slots=8 speed=480Mbit/s
                 *-usb:0 UNCLAIMED
                      description: Generic USB device
                      vendor: Global Unichip Corp.
                      physical id: 2
                      bus info: usb@2:1.2
                      version: 1.00
                      capabilities: usb-2.10
                      configuration: maxpower=498mA speed=480Mbit/s

 

아래는 할 것 다하고 USB 가속기를 설치하지 않았을 경우 발생하는 에러

장치를 발견하지 못했다고 뜨지 않고 Failed to load delegate from libedgetpu.so.1 이라고 뜬다.

$ python3 classify_image.py --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels models/inat_bird_labels.txt --input images/parrot.jpg
Traceback (most recent call last):
  File "/home/minimonk/.local/lib/python3.6/site-packages/tflite_runtime/interpreter.py", line 161, in load_delegate
    delegate = Delegate(library, options)
  File "/home/minimonk/.local/lib/python3.6/site-packages/tflite_runtime/interpreter.py", line 120, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "classify_image.py", line 122, in <module>
    main()
  File "classify_image.py", line 99, in main
    interpreter = make_interpreter(args.model)
  File "classify_image.py", line 73, in make_interpreter
    {'device': device[0]} if device else {})
  File "/home/minimonk/.local/lib/python3.6/site-packages/tflite_runtime/interpreter.py", line 164, in load_delegate
    library, str(e)))
ValueError: Failed to load delegate from libedgetpu.so.1

 

아무튼 USB 꼽고 하니 먼가 결과는 나오는데

맞나? 싶을 정도로 단순하게 문자열로 나온다.

그리고 USB2.0으로 해서 그런가 초기 속도가 상당히 느리게 나온다.

(홈페이지에서는 10ms 미만이었던 것 같은데)

$ python3 classify_image.py --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels models/inat_bird_labels.txt --input images/parrot.jpg
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
103.2ms
10.7ms
10.6ms
10.4ms
10.3ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.77734

 

혹시나 해서 찾아본 라이브러리 경로.

$ sudo find / -name libedgetpu.so*
/usr/lib/x86_64-linux-gnu/libedgetpu.so.1
/usr/lib/x86_64-linux-gnu/libedgetpu.so.1.0

 

 

+

회사에서 알게된 장비인데 중고로 구매할까 구매대행으로 할까하고 찾아보니

12만원 넘어서 그냥 한번 써보는걸로 만족하려는 중

 

 

+ 2020.10.21

웹캠으로 받아서 TPU로 90가지 객체가 인식 가능한지 한번 해봐? ㅋㅋㅋ

[링크 : https://ultrakid.tistory.com/6]

    [링크 : https://github.com/google-coral/edgetpu/blob/master/examples/object_detection.py]

'프로그램 사용 > google coral' 카테고리의 다른 글

edgetpu_c.h 파일 내용 분석  (0) 2022.02.07
tensorflow brace-enclosed initializer list  (4) 2022.02.07
google coral, tpu yolo  (0) 2022.01.27
coral tpu delegate example  (0) 2022.01.25
google coral  (0) 2020.10.06
Posted by 구차니

호스트 이름을 지정을 해줄순 있는데 MAC 주소에 따라서 설정을 해야 해서 서버댓수가 많으면 무지 귀찮을 수도?

 

[링크 : http://www.iorchard.net/2016/11/03/dhcp_set_hostname.html]

[링크 : http://itwiki.kr/w/리눅스_dhcpd.conf]

[링크 : https://blog.naver.com/namelessda/114773026]

 

The use-host-decl-names statement
use-host-decl-names flag;
If the use-host-decl-names parameter is true in a given scope, then for every host declaration within that scope, the name provided for the host declaration will be supplied to the client as its hostname. So, for example,

    group {
      use-host-decl-names on;

     host joe {
        hardware ethernet 08:00:2b:4c:29:32;
          fixed-address joe.fugue.com;
      }
    }

is equivalent to

     host joe {
        hardware ethernet 08:00:2b:4c:29:32;
          fixed-address joe.fugue.com;
        option host-name "joe";
      }
An option host-name statement within a host declaration will override the use of the name in the host declaration.
It should be noted here that most DHCP clients completely ignore the host-name option sent by the DHCP server, and there is no way to configure them not to do this. So you generally have a choice of either not having any hostname to client IP address mapping that the client will recognize, or doing DNS updates. It is beyond the scope of this document to describe how to make this determination.

[링크 : https://linux.die.net/man/5/dhcpd.conf]

'프로그램 사용 > PXE(네트워크 부트)' 카테고리의 다른 글

pxe boot  (0) 2023.06.21
DHCP / BOOTP / TFTP  (4) 2010.04.27
PXE 부팅하기  (0) 2010.04.25
PXE를 통한 우분투/XP 설치  (0) 2009.12.09
Posted by 구차니

 

Kibana는 Elastic Stack을 기반으로 구축된 오픈 소스 프론트엔드 애플리케이션으로, Elasticsearch에서 색인된 데이터를 검색하고 시각화하는 기능을 제공합니다

[링크 : https://www.elastic.co/kr/what-is/kibana]

 

 

[링크 : https://www.elastic.co/kr/kibana]

[링크 : https://www.elastic.co/kr/downloads/kibana]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
grafana  (0) 2020.10.14
zabbix  (0) 2020.10.14
prometheus  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

prometheus와 이야기가 많이 언급되서 찾아보는 중.

그나저나 다나와 깃 허브 내용이라니.. ㄷㄷㄷ

 

[링크 : https://danawalab.github.io/common/2020/03/17/Common-Dashboard.html]

[링크 : https://www.44bits.io/ko/keyword/grafana]

 

홈페이지 가서 보니 웹이라고 해서 php 이런걸로 된줄 알았는데 deb로 받게 되어있다.

단순 홈페이지가 아니라 WAS와 동적 페이지의 조합인가?

[링크 : https://grafana.com/]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
zabbix  (0) 2020.10.14
prometheus  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

snmp와 ipmi agent를 기본 제공하는 듯?

다만 intel architecture 서버 중에 HP와 Dell을 언급하는데

redfish는 아니고 ipmitool을 이용하는 걸까?

 

IPMI agent
To get important data from hardware, a Zabbix server supports IPMI agents, which are present by default on Intel architecture servers like HP iLO and Dell DRAC.

The items available through IPMI agents vary in each hardware, but these are the most common:

Temperature of the CPU and chassis
Fan speed
System voltages
State of the physical disk
Maintenance LED status

[링크 : https://www.zabbix.com/snmp_ipmi_agent]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
grafana  (0) 2020.10.14
prometheus  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

바이너리를 다운로드 받아서 그냥 아무런 옵션 주지 않고 실행한뒤

http://localshost:9090 으로 접속하면 된다.

 

cpu 정도는 보이는데 memory나 network는 잘 안보이고, 그래프도 실시간 업데이트는 안되는 것 같다.

[링크 : https://prometheus.io/docs/prometheus/latest/getting_started/]

[링크 : https://prometheus.io/download/]

 

모니터링 할 타겟에는 node exporter를 설치하면 되는데, 윈도우일 경우 WMI exporter라는 비공식 port가 있는 것으로 보인다.

[링크 : https://prometheus.io/docs/guides/node-exporter/]

[링크 : https://github.com/prometheus-community/windows_exporter]

  [링크 : https://medium.com/@essem_dev/프로메테우스와-그라파나로-개발-서버-모니터링하기-8942aea724b3]

  [링크 : https://hyunki1019.tistory.com/127]

 

+

클러스터에 그러면.. node exporter를 설치하고 전부 설정해야 한다는건데... ㄷㄷ

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
grafana  (0) 2020.10.14
zabbix  (0) 2020.10.14
elk - ElasticSearch, LogStash, Kibana  (0) 2019.05.14
Posted by 구차니

쿠버네티스 관리 도구

 

[링크 : http://rancher.com/]

'프로그램 사용 > kubernetes' 카테고리의 다른 글

kubernetes selector  (0) 2019.07.16
kubernetes delete pods with namespace  (0) 2019.07.16
kubernetes ImagePullBackOff 에러  (0) 2019.07.16
yaml  (0) 2019.07.16
kubectl  (0) 2019.07.16
Posted by 구차니

구글의 텐서플로우 가속기 라고 해야하려나?

아무튼 TPU accelerator인데 회사에 USB 버전이 있어서 한번 만져 볼까 싶네

 

[링크 : https://coral.ai/]

[링크 : https://coral.ai/products/accelerator/...E]

[링크 : https://coral.ai/docs/accelerator/get-started/#requirements]

'프로그램 사용 > google coral' 카테고리의 다른 글

edgetpu_c.h 파일 내용 분석  (0) 2022.02.07
tensorflow brace-enclosed initializer list  (4) 2022.02.07
google coral, tpu yolo  (0) 2022.01.27
coral tpu delegate example  (0) 2022.01.25
google coral, ubuntu 18.04  (0) 2020.10.20
Posted by 구차니

 

[링크 : https://j-remind.tistory.com/53]

[링크 : https://www.pyimagesearch.com/2020/01/27/yolo-and-tiny-yolo-object-detection-on-the-raspberry-pi-and-movidius-ncs/] tiny yolo

'프로그램 사용 > yolo_tensorflow' 카테고리의 다른 글

yolo lite  (0) 2021.01.08
SSDnnn (Single Shot Detector)  (0) 2021.01.08
CNN - YOLO  (0) 2021.01.07
yolo BFLOPs  (0) 2020.10.21
yolo3 on ubuntu 18.04  (0) 2020.10.20
Posted by 구차니
프로그램 사용/minicom2020. 9. 24. 11:36

dialout 그룹에 포함시키면 된다고 한다.

귀찮아서 /etc/group 을 수정하긴 했는데

명령어로도 가능은 한 듯?

 

그런데 왜 그룹 변경하면 리부팅이 필요할까?

 

[링크 : https://unix.stackexchange.com/questions/14354/read-write-to-a-serial-port-without-root]

[링크 : https://igotit.tistory.com/entry/우분투에서-USB-2-UART-칩-CP2101-권한설정하기-ttyUSB-시리얼포트]

 

+

newgrp 하면 리부팅 안해도 된다네?

그리고 로그아웃 했다 로그인 할 때 적용이 된다고 하니

우분투 데스크탑 유저라면 리부팅이 편할수도 있긴 하겠다..

[링크 : https://serverfault.com/.../is-a-reboot-required-to-refresh-permissions-after-adding-a-user-to-a-new-group]

 

+

$ stat /dev/ttyUSB0
  File: /dev/ttyUSB0
  Size: 0          Blocks: 0          IO Block: 4096   문자 특수 파일
Device: 6h/6d Inode: 658         Links: 1     Device type: bc,0
Access: (0660/crw-rw----)  Uid: (    0/    root)   Gid: (   20/ dialout)
Access: 2023-03-08 10:04:36.356257260 +0900
Modify: 2023-03-08 10:04:36.356257260 +0900
Change: 2023-03-07 17:22:47.356257260 +0900
 Birth: -

$ sudo usermod -a -G dialout $USER

[링크 : https://askubuntu.com/questions/133235/how-do-i-allow-non-root-access-to-ttyusb0]

'프로그램 사용 > minicom' 카테고리의 다른 글

minicom lf에 cr 붙이기  (0) 2023.01.05
minicom 16진수로 보기  (0) 2022.08.25
minicom 로그 저장하기  (0) 2021.09.16
minicom timestamp  (0) 2021.09.16
minicom 폭 늘리기  (0) 2021.01.28
Posted by 구차니