类型错误:传递给参数的值'begin'具有数据类型 float32 不在允许的值列表中:int32、int64



当我裁剪张量流对象检测API获得的图像时,但收到此错误

TypeError: Value passed to parameter 'begin' has DataType float32 not in list of allowed values: int32, int64

我正在使用cropped_image= tf.image.crop_to_bounding_box(image_np, int(yminn), int(xminn), int(ymaxx-yminn), int(xmaxx-xminn))

请帮忙

我昨天遇到了这个确切的问题。这似乎是因为我最初在Windows上分别安装了tensorflow和anaconda。但是有一次我再次尝试在 anaconda 命令提示符下使用 conda create 安装张量流。如果你想节省时间,只需继续卸载并重新安装tensorflow,conda(如果已安装(,pythong

相关内容

最新更新