구글 코랄 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 구차니
개소리 왈왈/컴퓨터2020. 10. 20. 10:43

시작 프로그램에서 이상한게 있어서 막았는데도 부팅 마다 계속 실행되서

이것저것 뒤져보니 DNALauncherSVC 라는 녀석으로 등록되어 있다. -_-

 

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

ADATA SSD 또 날아가려고 그러니? ㅜㅜ  (0) 2020.10.30
아아 SD가 죽었습니다 ㅠㅠ  (0) 2020.10.22
USB 사운드 카드 도착!  (0) 2020.10.19
해외 배송은 갑작스럽다  (0) 2020.10.17
컴퓨터 득템?  (0) 2020.10.14
Posted by 구차니
embeded2020. 10. 19. 15:05

uboot에서 cpu id 확인하는 부분을 수정하는 것 같은데 머가 원인이었을까?

 

[링크 : https://community.nxp.com/.../Poor-framerates-on-iMX6-Solo-when-decoding-H264/...]

[링크 : https://community.nxp.com/.../Error-in-opening-firmware-binary-file-for-i-mx6-solo-wandboard/...]

'embeded' 카테고리의 다른 글

i.mx6quad용 gcc 옵션  (0) 2021.01.08
orange pi r1+  (0) 2021.01.08
간만에 부품 지름  (2) 2020.03.04
solidrun CuBox-i2w  (0) 2019.03.10
udoo 보드  (0) 2018.11.29
Posted by 구차니
Programming/c# & winform2020. 10. 19. 14:02

 

[링크 : https://stackoverflow.com/questions/6103705/]

[링크 : https://www.nuget.org/packages/PdfiumViewer/] apache 2.0 license

[링크 : https://www.nuget.org/packages/PdfiumViewer.Native.x86_64.v8-xfa/] apache 2.0 license

 

+

[링크 : https://stackoverflow.com/questions/48740924]

 

[링크 : https://stackoverflow.com/questions/57415902]

  [링크 : https://www.nuget.org/packages/HtmlConvert]

  [링크 : https://www.nuget.org/packages/DynamicPDF/]

    [링크 : www.dynamicpdf.com/Merge-PDF-.NET.aspx]

  [링크 : https://www.codeproject.com/Articles/28283/Simple-NET-PDF-Merger] ??

'Programming > c# & winform' 카테고리의 다른 글

itext7  (0) 2020.10.22
c# pdf itextsharp -> itext7  (0) 2020.10.22
c# printer 사용하기 - printer enumeration  (0) 2020.10.19
c# dialog dual screen  (0) 2020.10.15
c# dialog 전체화면  (0) 2020.10.15
Posted by 구차니
Microsoft/Windows2020. 10. 19. 12:46

html 파일을 렌더링 해서 출력하려면 어떻게 해야 하나..

아래의 명령으로는 txt 로 출력된다.

Get-Content -Path *.html | Out-Printer

 

Out-Printer (출력하기)

[링크 : https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-printer]

 

Get-Printer (프린터 목록)

[링크 : https://docs.microsoft.com/en-us/powershell/module/printmanagement/get-printer]

 

ie로 보내서 출력.. (여러개 파일은?)

[링크 : https://stackoverflow.com/questions/7189299/print-automatically-html-file-with-powershell]

'Microsoft > Windows' 카테고리의 다른 글

원격 데스크탑 멀티 모니터  (0) 2020.11.13
원격 데스크톱 바로가기 만들기  (0) 2020.11.10
윈도우 단축키 할당하기  (0) 2019.03.26
win10 에서 hiberfil.sys 없애기  (0) 2019.03.26
UWP - Universal Windows Platform  (0) 2019.03.26
Posted by 구차니
Programming/c# & winform2020. 10. 19. 12:36

일단은 프린터 나열부터 시작

        private void button1_Click(object sender, EventArgs e)
        {
            PrintQueue printQueue = null;
            LocalPrintServer localPrintServer = new LocalPrintServer();
            PrintQueueCollection localPrinterCollection = localPrintServer.GetPrintQueues();

            //Console.WriteLine("These are your shared, local print queues:\n\n");

            foreach (PrintQueue printer in localPrinterCollection)
            {
                //Console.WriteLine("\tThe shared printer " + printer.Name + " is located at " + printer.Location + "\n");
                textBox1.Text += printer.Name + "@" + printer.Location + "\r\n";
            }
            //Console.WriteLine("Press enter to continue.");
            //Console.ReadLine();
            //System.Collections.IEnumerator localPrinterEnumerator = localPrinterCollection.GetEnumerator();

        }

 

[링크 : https://docs.microsoft.com/ko-kr/dotnet/desktop/wpf/advanced/how-to-enumerate-a-subset-of-print-queues?view=netframeworkdesktop-4.8]

'Programming > c# & winform' 카테고리의 다른 글

c# pdf itextsharp -> itext7  (0) 2020.10.22
c# print 하기  (0) 2020.10.19
c# dialog dual screen  (0) 2020.10.15
c# dialog 전체화면  (0) 2020.10.15
c# winform / 버튼클릭 이벤트 호출하기  (2) 2020.10.15
Posted by 구차니
개소리 왈왈/컴퓨터2020. 10. 19. 10:10

win10에서 자동 인식을 한다!

7.1로 잡힌것 같긴한데..

스피커 구성으로 해보니 5.1은 소리가 나오는데 7.1에서 RL/ RR은 나오지 않는것 봐서는 5.1이 최대인 것 같다.

 

내 노트북의 ubuntu 18.04 에서는 잡히는 것도 좀 이상하고

5.1 채널 설정해서 소리 테스트 하면 소리가 안나기도 하고.. 영 이상하네.. 안되는건 아니겠지? ㅠㅠ

 

[   27.335580] usb 2-1.2: new full-speed USB device number 4 using ehci-pci
[   27.446190] usb 2-1.2: New USB device found, idVendor=0d8c, idProduct=0102, bcdDevice= 0.10
[   27.446201] usb 2-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   27.446207] usb 2-1.2: Product: USB Sound Device        
[   27.478308] hidraw: raw HID events driver (C) Jiri Kosina
[   27.484227] usb 2-1.2: current rate 30464 is different from the runtime rate 96000
[   27.485858] usb 2-1.2: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   27.485861] usb 2-1.2: [9] FU [Mic Playback Volume] ch = 2, val = -6144/1921/1
[   27.486982] usb 2-1.2: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   27.486986] usb 2-1.2: [11] FU [Line Playback Volume] ch = 2, val = -6144/1921/1
[   27.493851] usb 2-1.2: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   27.493853] usb 2-1.2: [8] FU [Mic Capture Volume] ch = 2, val = -4096/2832/1
[   27.494989] usb 2-1.2: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   27.494991] usb 2-1.2: [15] FU [Line Capture Volume] ch = 2, val = -4096/2832/1
[   27.496850] usb 2-1.2: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   27.496852] usb 2-1.2: [2] FU [PCM Capture Volume] ch = 2, val = -4096/2832/1
[   27.497286] usbcore: registered new interface driver snd-usb-audio
[   27.498922] usbcore: registered new interface driver usbhid
[   27.498924] usbhid: USB HID core driver
[   27.513414] input: USB Sound Device         as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.3/0003:0D8C:0102.0001/input/input23
[   27.576116] hid-generic 0003:0D8C:0102.0001: input,hidraw0: USB HID v1.00 Device [USB Sound Device        ] on usb-0000:00:1d.0-1.2/input3

 

 

        *-multimedia
             description: Audio device
             product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 04
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:32 memory:d0720000-d0723fff

 

+

집에와서 odroid xu4 에 물려서 해보니 잘 된다(ubuntu mate)

 

다만 전방에 소리가 몰려있어서 후방으로 많이 밀어주어야 했는데 동영상 틀어봐야 확실하게 알 듯..

 

front left~ rear left~ 잘들린다!

그런데 front center와  LFE는 노이즈 처럼 작게 들리네..

 

희한하게 kodi 에서 4채널까진 괜찮은데 4.1 5.0 5.1 이런식으로 설정하면 소리가 확 작아진다.

정확하게는 center 채널이 분리되면서 다른쪽으로는 음성이 제거되는 느낌이라고 해야하나?

 

+

downmix 시 center 채널 mixing에 대한 부분이 켜지지 않을 경우 그렇다고 하는데

테스트 하기에는 너무 시간이.. ㅠㅠ

 

[링크 : https://forum.kodi.tv/showthread.php?tid=334664]

[링크 : https://kodi.wiki/view/Settings/System/Audio#Maintain_original_volume_on_downmix]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

아아 SD가 죽었습니다 ㅠㅠ  (0) 2020.10.22
lg gram 드라이버 프로그램 자동 실행 막기  (0) 2020.10.20
해외 배송은 갑작스럽다  (0) 2020.10.17
컴퓨터 득템?  (0) 2020.10.14
어쩌다 보니 득템?  (0) 2020.10.11
Posted by 구차니

만사 귀찮음 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

지치는 토요일  (0) 2020.12.05
냄비 두개  (0) 2020.10.24
평온한.. 하루?  (0) 2020.10.16
오늘은 운전을 하면 안되는 날이구만  (0) 2020.10.10
분노분노분노  (0) 2020.10.09
Posted by 구차니
개소리 왈왈/컴퓨터2020. 10. 17. 21:04

토요일인데 배송이 되려다가 쉬는 날이라 배송 못한다고 연락이 왔는데

어제 회사에서 확인할때만 해도 소식이 없다가

저녁 9시 쯔음에 국내로 들어왔는지 갑자기 다음날 그런 연락이 오네 -__

 

 

아무튼.. 5.1 채널 사운드 카드가 오는데

odroid XU4 에 외장형 사운드 카드와 사용해서 i5-2500을 대체해서

동영상 보는 용도로 쓰는게 나을까..

아니면 10만원 정도 들여서 G4400T 정도 구매하는게 나을까?

단일 코어로는 i5-2500과 거의 동급인데 펜티엄 라인업이라니 ㄷㄷ

 

DDR5가 나오려는 시대에 DDR4에

10세대 나온 시점에 6세대라.. 고민되네

[링크 : https://support.hp.com/kr-ko/document/c04864903]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

lg gram 드라이버 프로그램 자동 실행 막기  (0) 2020.10.20
USB 사운드 카드 도착!  (0) 2020.10.19
컴퓨터 득템?  (0) 2020.10.14
어쩌다 보니 득템?  (0) 2020.10.11
stormbook 14 pro 64GB 모델  (0) 2020.10.05
Posted by 구차니

지하철에서 옆자리 아자씨가

아이패드 같은데 윈도우 화면이 막 나오길래 먼가 해서

검색을 해봤더니 rdp 어플이 똭!

게다가 애플에 ms 공식?!?!

 

[링크 : https://kwonkyo.tistory.com/313]

[링크 : https://apps.apple.com/kr/app/microsoft-remote-desktop/id1295203466?mt=12]

[링크 : https://play.google.com/store/apps/details?id=com.microsoft.rdc.android&hl=ko&gl=US]

'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

에그 없애고 요금제 갈아 탈까?  (0) 2020.11.26
V50 V50s 흐음..  (2) 2020.11.21
몬스터 볼 플러스!  (0) 2020.09.22
LG V50s가 눈에 들어옴  (0) 2020.09.12
통신비도 안정화 되었고..  (0) 2020.08.12
Posted by 구차니