has length 1; 2 is required'), TypeError('vars() argument must have __dict__ attribute')]from fastapiimport FastAPIdata = {}def startup_event(): data[2] = [...]
我正在根据图像的类型对图像进行分类。在最后一步中,我将返回概率最高的类。它工作得很好,但当我试图映射标签时,它显示了这个错误: value is not a valid integer (type=type_error.integer) 保存的模型:https://gofile.io/d/myfFjR 示例图像:https://gofile.io/d/myfFjR fr