PrashanthB461 commited on
Commit
75ae33e
·
verified ·
1 Parent(s): 0c8dd42

Create tests/test_inference.py

Browse files
Files changed (1) hide show
  1. tests/test_inference.py +8 -0
tests/test_inference.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # tests/test_inference.py
2
+
3
+ def test_inference():
4
+ frame = np.zeros((640, 640, 3), dtype=np.uint8)
5
+ model = YOLOv8Model()
6
+ result = model.predict(frame)
7
+ assert isinstance(result, pd.DataFrame), "Expected results in DataFrame format"
8
+ assert "name" in result.columns, "Violation class (name) missing in results"