# -*- coding: utf-8 -*-
"""
Created on Mon Jun 22 13:55:49 2020

@author: Public_2080
"""

import pandas as pd
csv = pd.read_csv('crab_img_df_ver1.csv')
train_path = 'cly_30_crab/'

with open ('crab_img_df_ver1.txt', 'w') as f:
    for i in range(len(csv)):
        img = csv.iloc[i][0]
        label = csv.iloc[i][1]
        img = train_path + str(label) + '/'  + str(label) + '/' + img
        f.write(str(img) + ' ' + str(label) +'\n')
67b03cf46958e89b411d9aa9a9db6c14fc25a5ff
<mask token>

<mask token>
with open('crab_img_df_ver1.txt', 'w') as f:
    for i in range(len(csv)):
        img = csv.iloc[i][0]
        label = csv.iloc[i][1]
        img = train_path + str(label) + '/' + str(label) + '/' + img
        f.write(str(img) + ' ' + str(label) + '\n')

<mask token>
csv = pd.read_csv('crab_img_df_ver1.csv')
train_path = 'cly_30_crab/'
with open('crab_img_df_ver1.txt', 'w') as f:
    for i in range(len(csv)):
        img = csv.iloc[i][0]
        label = csv.iloc[i][1]
        img = train_path + str(label) + '/' + str(label) + '/' + img
        f.write(str(img) + ' ' + str(label) + '\n')

<mask token>
import pandas as pd
csv = pd.read_csv('crab_img_df_ver1.csv')
train_path = 'cly_30_crab/'
with open('crab_img_df_ver1.txt', 'w') as f:
    for i in range(len(csv)):
        img = csv.iloc[i][0]
        label = csv.iloc[i][1]
        img = train_path + str(label) + '/' + str(label) + '/' + img
        f.write(str(img) + ' ' + str(label) + '\n')

# -*- coding: utf-8 -*-
"""
Created on Mon Jun 22 13:55:49 2020

@author: Public_2080
"""

import pandas as pd
csv = pd.read_csv('crab_img_df_ver1.csv')
train_path = 'cly_30_crab/'

with open ('crab_img_df_ver1.txt', 'w') as f:
    for i in range(len(csv)):
        img = csv.iloc[i][0]
        label = csv.iloc[i][1]
        img = train_path + str(label) + '/'  + str(label) + '/' + img
        f.write(str(img) + ' ' + str(label) +'\n')