Overview

I have published an inference app using YOLOv8 at the following link:

https://huggingface.co/spaces/nakamura196/yolov8-ndl-layout

Initially, the following error occurred:

VttoSaooselrr.eucceehhnhE..vtrccitruurpoddosraan::..[id'/IseCpn_vUyvaiDtavcAolae_rii_VcdlcIhaoS.CbuIoUlnBrDetLgA((E/))_g'::DedEteF0V-vaIsilCtcsEaeeSr='t0]e':d/rNleooqncueaelsltye/d.foUrseup'-dteov-idcaet=ecptuo'rcohripnasstsalvlaliindstCrUuDcAtidoenvsicief(sn)oiCfUDaAvadielvaibclees,air.ee.se'ednevbiycet=o0r'cho.r'device=0,1,2,3'forMulti-GPU.

This error was resolved by adding device as follows:

results=model.predict(img,device="cpu")

Details

I was using the following library:

https://github.com/fcakyon/ultralyticsplus

When using it as shown below, the error above occurred:

f#mirromeoldgsmoeual=ludtl='stmhroYt=adOtleLpmylOsot(:di"/ecn/lsad.pklpla.rumnesuddrliia.cm1gtp9o(o6.ir/jmtypgo/)YlaOopLviO8/,-inirdielfn-/dl2ea5ry3_o4ru0et2s"0u)/lTt0000001/full/full/0/default.jpg'

Adding the argument as follows resolved the error:

results=model.predict(img,device="cpu")

Supplement

When using a local model as shown below, the error above did not occur even without device="cpu":

model=YOLO('./model_-19may202415_13.pt')

Summary

I hope this serves as a useful reference.