torch error : NameError name ‘name’ is not defined

  Kiến thức lập trình

I’m currently attempting to create an executable using PyInstaller, but I’ve encountered an error : NameError: name ‘name’ is not defined caused by the line of code below.

model = lp.Detectron2LayoutModel('lp://PubLayNet/faster_rcnn_R_50_FPN_3x/config',extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.8],label_map={0: "Text", 1: "Title", 2: "List", 3: "Table", 4: "Figure"}) 

enter image description here

Can you provide guidance on resolving this issue

LEAVE A COMMENT