出错
r: 'gbk' codec can't decode byte 0xaa in position 1879: illegal multibyte sequence
这个地方需要咋地63行改为
with open(opt.data,'rb') as f:
1 首先将数据放在指定位置
修改产品名字
classes = ["knife","scissors","lighter","USBFlashDisk","pressure","plasticBottleWithaNozzle","seal","battery"] # 改成自己的类别