Last active
February 6, 2021 20:19
-
-
Save Zakaria-pro/b00b670bd53f4299d386058c182ef9b9 to your computer and use it in GitHub Desktop.
Data_Acquisition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = '/kaggle/input/insulation-joint-training-set-prorail/trainset_insulation_joint/labels.csv' | |
df = pd.read_csv(path, sep=';') | |
print(df) | |
# This part is just to join the filepath of images with the name of images | |
# If you dont add it you will find in filepath colum in the df, only the name of the images | |
ROOT_DATA = '/kaggle/input/insulation-joint-training-set-prorail/trainset_insulation_joint/' | |
df['filepath'] = df.ID.apply(lambda x: os.path.join(ROOT_DATA, 'images/', f"{x}.jpg")) | |
print(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment