DataFlit
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,7 +4,7 @@ panel_jpg/
|
|||||||
result_ssd7_panel_1/
|
result_ssd7_panel_1/
|
||||||
result_ssd7_panel_2/
|
result_ssd7_panel_2/
|
||||||
Train&Test_A/
|
Train&Test_A/
|
||||||
Train&Test_B/
|
Train&Test_1/
|
||||||
Train&Test_C/
|
Train&Test_C/
|
||||||
result_ssd7_panel/
|
result_ssd7_panel/
|
||||||
result_ssd7_panel_cell/
|
result_ssd7_panel_cell/
|
||||||
|
|||||||
@@ -76,13 +76,16 @@ def _main_(args):
|
|||||||
cod_falla = int(Excel.loc[index_path]['Cód. Falla'])
|
cod_falla = int(Excel.loc[index_path]['Cód. Falla'])
|
||||||
sev = Excel.loc[index_path]['Severidad']
|
sev = Excel.loc[index_path]['Severidad']
|
||||||
|
|
||||||
|
#if cod_falla != 1:
|
||||||
|
# continue
|
||||||
|
|
||||||
## Junta las mismas fotos con distintos label EJ :
|
## Junta las mismas fotos con distintos label EJ :
|
||||||
# DJI_0021B ---> DJI_0021
|
# DJI_0021B ---> DJI_0021
|
||||||
aux = path_Flir.split('/')[-2:]
|
aux = path_Flir.split('/')[-2:]
|
||||||
if len(aux[1].split('.')[0]) > 8:
|
if len(aux[1].split('.')[0]) > 8:
|
||||||
aux[1] = aux[1].split('.')[0][:8] + '.' + aux[1].split('.')[1]
|
aux[1] = aux[1].split('.')[0][:8] + '.' + aux[1].split('.')[1]
|
||||||
|
|
||||||
path_Flir_aux = thermal_path + '/'.join(aux)
|
path_Flir_aux = thermal_path + '/'.join(path_Flir.split('/')[-2:])
|
||||||
|
|
||||||
if not os.path.isfile(path_Flir_aux):
|
if not os.path.isfile(path_Flir_aux):
|
||||||
print ('No existe la imagen', path_Flir_aux)
|
print ('No existe la imagen', path_Flir_aux)
|
||||||
|
|||||||
Reference in New Issue
Block a user