Skip to content
Snippets Groups Projects
Commit d10cb677 authored by titouan's avatar titouan
Browse files

Merge remote-tracking branch 'origin/main'

parents 808f3445 88789cd0
No related branches found
No related tags found
No related merge requests found
...@@ -41,10 +41,10 @@ def computeDict(image_path, path, y_true_value, max_size: tuple): ...@@ -41,10 +41,10 @@ def computeDict(image_path, path, y_true_value, max_size: tuple):
image = Image.open(full_path) image = Image.open(full_path)
image = image.convert("RGB") image = image.convert("RGB")
resized = resizeImage(image, *max_size) resized = resizeImage(image, *max_size) # On ne stocke pas resized image, on calcule tout avant de l'oublier
return {"name_path": full_path, return {"name_path": full_path,
"resized_image": resized, #"resized_image": resized,
"X_histo": computeHisto(resized), "X_histo": computeHisto(resized),
"y_true_class": y_true_value, "y_true_class": y_true_value,
"y_predicted_class": None} "y_predicted_class": None}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment