Explorar o código

Merge pull request #411 from nqzhang/patch-1

Update x2voc.py
Jason %!s(int64=5) %!d(string=hai) anos
pai
achega
d8ee6d335f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      paddlex/tools/x2voc.py

+ 1 - 1
paddlex/tools/x2voc.py

@@ -67,7 +67,7 @@ class LabelMe2VOC(X2VOC):
             img_name_part = osp.splitext(img_name)[0]
             json_file = osp.join(json_dir, img_name_part + ".json")
             if not osp.exists(json_file):
-                os.remove(os.remove(osp.join(image_dir, img_name)))
+                os.remove(osp.join(image_dir, img_name))
                 continue
             xml_doc = minidom.Document() 
             root = xml_doc.createElement("annotation")