mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
Add files via upload
This commit is contained in:
parent
e2836fe393
commit
41d0def60a
9
data_handle/truncated.py
Normal file
9
data_handle/truncated.py
Normal 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)
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user