nyonyong commited on
Commit
f6d020b
β€’
1 Parent(s): e0be3d4

Directory fix

Browse files
Files changed (1) hide show
  1. TextRearrange/DBSCAN.py +2 -2
TextRearrange/DBSCAN.py CHANGED
@@ -170,8 +170,8 @@ timestr = time.strftime("%Y%m%d%H%M%S")
170
 
171
  #전체 데이터 셋에 λŒ€ν•΄μ„œ ν•˜λ‚˜μ”© μΆ”μΆœν•˜μ—¬ νŒ¨λ”© ν›„ 이름 λ³€ν™˜
172
  for i in range(len(file_name)): #_, x_value, file_name, y_mean
173
- old_path = str(Dir.folder_path) +"/"+ str(file_name[i])
174
- new_path = str(Dir.folder_path) +"/"+ str(y_mean[i]).zfill(4) +"_"+ str(x_value[i]).zfill(4) + ".jpg"
175
 
176
  DbscanArrange.rename_file(old_path, new_path)
177
 
 
170
 
171
  #전체 데이터 셋에 λŒ€ν•΄μ„œ ν•˜λ‚˜μ”© μΆ”μΆœν•˜μ—¬ νŒ¨λ”© ν›„ 이름 λ³€ν™˜
172
  for i in range(len(file_name)): #_, x_value, file_name, y_mean
173
+ old_path = "/home/user/app"+ str(Dir.yolo_dir) + str(Dir.folder_path) +"/"+ str(file_name[i])
174
+ new_path = "/home/user/app"+ str(Dir.yolo_dir) + str(Dir.folder_path) +"/"+ str(y_mean[i]).zfill(4) +"_"+ str(x_value[i]).zfill(4) + ".jpg"
175
 
176
  DbscanArrange.rename_file(old_path, new_path)
177