Spaces:
Runtime error
Runtime error
nyonyong
commited on
Commit
Β·
f6d020b
1
Parent(s):
e0be3d4
Directory fix
Browse files- 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 |
|