quic / qidk

Other
94 stars 18 forks source link

Not supported PySNPE for ubuntu aarch64 #34

Open developer-vbee opened 1 week ago

developer-vbee commented 1 week ago

i install pysnpe-utils in my ubuntu aarch64 machine, but faced the error when run this line

try:
    from qti.aisw.dlc_utils import snpe_dlc_utils
    from qti.aisw.dlc_utils import modeltools
except ImportError as ie:
    logger.error("Failed to find necessary package:")
    logger.error(str(ie))
    logger.error("Please ensure that $SNPE_ROOT/lib/python is in your PYTHONPATH")

Through the stacktrace i found that in the SNPE SDK, the dlc_utils has only *.so file for linux-x86_64, windows-arm64ec, windows-x86_64. So can I run pysnpe in ubuntu-aarch64, or pysnpe doesn't support it for now? image

quic-vraidu commented 1 week ago

Can I know which laptop or PC you are using which contains ubuntu arm OS?

developer-vbee commented 1 week ago

I am using the AI Box that includes Qualcomm hardware. You can find that here https://hsptek.com/vi/san-pham/ai-box-6490/

quic-rneti commented 1 week ago

Dear user - May I know, for which purpose you are trying to use PySNPE ? Are you trying to use the Python API for model preparation or Model deployment (on streaming video, streaming camera data)

developer-vbee commented 1 week ago

Thank for quickly reply @quic-rneti. I want to use PySNPE for model deployment, since I already can do the model conversion step in a x86_64 machine. But I have to deploy the dlc model in the ai-box that has ubuntu-arm OS.

developer-vbee commented 6 days ago

If PySNPE doesn't support ubuntu-arm yet, can you suggest other options for model deployment @quic-rneti? Thank you.

quic-rneti commented 6 days ago

Please refer to this : https://github.com/quic/qidk/tree/master/Tools/snpe-helper

We deployed this for Windows on Snapdragon, LNX.LE (Embedded Linux), and LNX.LU (Ubuntu Linux) for multiple customers. Do check it out, and let us know