Skip to content

updated in a pythonic manner the parts 5.2 and 6.2#1

Open
M0hc3n wants to merge 1 commit intonicknochnack:mainfrom
M0hc3n:main
Open

updated in a pythonic manner the parts 5.2 and 6.2#1
M0hc3n wants to merge 1 commit intonicknochnack:mainfrom
M0hc3n:main

Conversation

@M0hc3n
Copy link

@M0hc3n M0hc3n commented Feb 19, 2023

Problem:

Looking at sections 5.2 and 6.2, they seemed to have a repetitive code that could be handled in a more condensed manner

Solution:

The solution is to use loops around the aug_data folders (i.e: train, test, val) and add the images (resp labels) into a dedicated list. At the end, we will just retrieve the content of the list and store it in the dedicated variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant