个人在试验mask-rcnn的过程中使用labelme进行标注,使用中遇到了如下问题: Unable to save: 'bytes' object has no attribute 'encode' 这个是在windows上python3上遇到的问题。需要修改代码,网上有怎么对应的方法,但没有提供现成的可用代码,故我修改后验证可用,然后共享出来,不用大家每次都去修改。 共享的代码位置:https://github.com/renwoxing2016/labelme-update。