Xe~ddlmZddlmZddlZddlmZdedededed ed ed ed ed efdZ d efdZ dede d e fdZ dS))DEVICE)ListN)is_openvino_device prev_width cur_width prev_height cur_height prev_model cur_modelprev_num_of_imagescur_num_of_imagesreturnc\d}||ks||ks ||ks||krtdd}|S)NFzReshape and compileT)print) rrrr r r r r reshape_requireds 2F:\dev\push\faster\fastsdcpu\src\frontend\utils.pyis_reshape_requiredrs`i * $   "  !2 2  #$$$ cpto(tjdkS)Ndarwin)rplatformsystemlowerrrenable_openvino_controlsrs,    IHO$5$5$;$;$=$=$IIrmodelsmodel_idct|dkrtddS|dkr|dS||vr|Std|d|d|dS)Nrz@Error: model configuration file is empty,please add some models.zError:z> Model not found in configuration file,so using first model : )lenr)rrs rget_valid_model_idr!"s 6{{a PQQQr2~ay6 hX h h]cde]f h h   ayr) constantsrtypingrrbackend.devicerintboolrrstrr!rrrr(s------      .J$JJJJ  r