开发者社区> 问答> 正文

应用模型的代码是什么啊?

已解决

应用模型的代码是什么啊?

展开
收起
OPPOLC 2022-07-27 14:35:12 458 0
1 条回答
写回答
取消 提交回答
  • 推荐回答

    predict=model.predict(image)[0] color_dict=[(128,0,0),(0,128,0),(128,128,0),(0,0,128)] predict=predict.argmax(-1) img_out=np, zeros((512,512,3),dtype= uint8’) for i in range(class_num): img_out[predict = i] = color_dict[i] img_out=Image.fromarray(np.uint8(ing_out)).resize((512,512),Image.NEAREL img_out = Image.blend(img,ing_out,0.7)

    2022-07-27 14:44:49
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
典型模型-卷积神经网络入门 从概念原理到应用实现 立即下载
典型模型-卷积神经网络入门 立即下载
基于神经网络的语言合成 立即下载