Home Forums Software Development Kit (SDK) Error with resnet50 pretrained model

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #15605
    Mostafiz Hossain


    I am trying to run the pre-trained models provided with the SDK. All the models except the resnet50 is working fine. When I run the below command:

    python demo.py image ../Models/2803/gti_resnet50_2803_2chip.model ../Data/Image_bmp_c1000/beach.bmp

    I am getting this error: TypeError: expected string or buffer

    I am posting the console output here for your reference:

    Running on a 64-bit machine
    – 1571896843912 -140327529891584- 2-:GTI SDK built on: Aug 7 2019
    – 1571896843914 -140327529891584- 1-:Search for native usb library failed. libusb-1.0.so: cannot open shared object file: No such file or directory
    – 1571896843914 -140327529891584- 1-:Load native usb symbol failed at device scan. err=1. Stopped scanning.
    – 1571896843915 -140327529891584- 2-:found device:USB_EUSB_000000000012:/sys/dev/char/../../devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host2/target2:0:0/2:0:0:0/scsi_generic/sg2
    – 1571896844029 -140327529891584- 2-:Create Chip 2803
    – 1571896844135 -140327529891584- 0-:Could not find any available device
    – 1571896844135 -140327529891584- 0-:could not find any GTI devices
    – 1571896844135 -140327529891584- 0-:Could not establish device: null
    – 1571896844136 -140327529891584- 0-:GtiUnlockDevice Invalid Parameter
    – 1571896844143 -140327529891584- 0-:GtiImageEvaluate invalid parameter
    Traceback (most recent call last):
    File “demo.py”, line 148, in <module>
    File “demo.py”, line 131, in main
    File “demo.py”, line 68, in showImage
    File “demo.py”, line 51, in processImage
    File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
    return _default_decoder.decode(s)
    File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    TypeError: expected string or buffer
    – 1571896844165 -140327529891584- 0-:GtiDestroyModel invalid parameter


    Arpine SoghoyanArpine Soghoyan

    Hi Mostafiz, Resnet50 model requires 2 GTI 2803 chips to run, it only finds 1 device attached and fails.

    Mostafiz Hossain

    Thank You Arpine for the clarification, the documentation do not say anything about 2 chips so was not aware of it. Regards.

    Mostafiz Hossain

    Hello Arpine, I have few more question for you,looking forward for the answers:

    1. Why we need 2 chips to run the resNet50? Where as we can run mobilenet with only 1 chip. Any specific reason?

    2. If I re-train the resnet50 with one chip, is it possible to run it with one chip?

    3. Is there a way we can view the hardware profiling? or we can see which part of the network is actually running in the chip and which part is running in the host itself?

    Thanks again.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.