1
0

use ignite for exp2

This commit is contained in:
2025-12-02 23:07:27 +08:00
parent 43b807679f
commit 65c56e938c
15 changed files with 246 additions and 794 deletions

View File

@@ -1,3 +1,4 @@
from pathlib import Path
import tensorflow as tf
from PIL import Image
import numpy as np
@@ -33,6 +34,7 @@ class Predict(object):
if __name__ == "__main__":
app = Predict()
app.predict('./test_images/0.png')
app.predict('./test_images/1.png')
app.predict('./test_images/4.png')
images_dir = Path(__file__).resolve().parent.parent / 'test_images'
app.predict(images_dir / '0.png')
app.predict(images_dir / '1.png')
app.predict(images_dir / '4.png')