changed project structure, merged docker compose files

This commit is contained in:
2026-05-06 17:09:28 +02:00
parent 86b3cd38f4
commit 5c6b4c4b9d
52 changed files with 20 additions and 20 deletions
+22
View File
@@ -0,0 +1,22 @@
from PIL import Image
import os
folder = "data/train"
widths = []
heights = []
for root, _, files in os.walk(folder):
for file in files:
if file.endswith((".jpg", ".png", ".jpeg")):
path = os.path.join(root, file)
img = Image.open(path)
w, h = img.size
widths.append(w)
heights.append(h)
avg_w = sum(widths) / len(widths)
avg_h = sum(heights) / len(heights)
print("Average width:", avg_w)
print("Average height:", avg_h)