@@ -1299,7 +1299,7 @@ def _updateDataSet(url, objId, group_id, device_id, drop, img_type, sqlId, style
12991299 OBJ_COUNT += 1
13001300
13011301 # 这里需要把老图从本地目录删除掉
1302- old_img_path = infile .replace (str (new_train_set .id )+ '.jpg ' , str (old_train_set .id )+ '.jpg ' )
1302+ old_img_path = infile .replace (str (new_train_set .id )+ '.png ' , str (old_train_set .id )+ '.png ' )
13031303 os .remove (old_img_path )
13041304 elif SVM_CLASSIFIER_ENABLED is True :
13051305 img_path = save_embedding .download_img_for_svm (url , group_id , face_id , style = style )
@@ -1323,7 +1323,7 @@ def _updateDataSet(url, objId, group_id, device_id, drop, img_type, sqlId, style
13231323 print ('update: {} style face count, url={}' .format (FACE_COUNT [style ], url ))
13241324
13251325 # 这里需要把老图从本地目录删除掉
1326- old_img_path = img_path .replace (str (new_train_set .id ) + '.jpg ' , str (old_train_set .id ) + '.jpg ' )
1326+ old_img_path = img_path .replace (str (new_train_set .id ) + '.png ' , str (old_train_set .id ) + '.png ' )
13271327 os .remove (old_img_path )
13281328 else :
13291329 print ('face' )
@@ -1338,7 +1338,7 @@ def _updateDataSet(url, objId, group_id, device_id, drop, img_type, sqlId, style
13381338 print ('{} style face count' .format ((FACE_COUNT [style ])))
13391339
13401340 # 这里需要把老图从本地目录删除掉
1341- old_img_path = img_path .replace (str (new_train_set .id ) + '.jpg ' , str (old_train_set .id ) + '.jpg ' )
1341+ old_img_path = img_path .replace (str (new_train_set .id ) + '.png ' , str (old_train_set .id ) + '.png ' )
13421342 os .remove (old_img_path )
13431343
13441344 else :
0 commit comments