Add files via upload

This commit is contained in:
Refound 2024-11-18 21:30:12 +08:00 committed by GitHub
parent e2836fe393
commit 41d0def60a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

9
data_handle/truncated.py Normal file
View File

@ -0,0 +1,9 @@
import glob
from PIL import Image
paths = glob.glob("nailongClassification/train/*/*.jpg")
for path in list(paths):
try:
Image.open(path).load()
except Exception as e:
print(f"{path}:", e)