You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following script is generated by AI Agent to help reproduce the issue:
# YOLO/reproduce.pydeftest_notebook_train():
try:
withopen("YOLO/examples/notebook_train.ipynb") asf:
content=f.read()
# Check if the notebook is not emptyassertlen(content.strip()) >0, "notebook_train.ipynb is empty"print("notebook_train.ipynb is not empty.")
exceptExceptionase:
raiseAssertionError(e)
deftest_notebook_inference():
try:
withopen("YOLO/examples/notebook_inference.ipynb") asf:
content=f.read()
# Check if the term 'PostProccess' is presentassert'PostProccess'notincontent, "notebook_inference.ipynb contains spelling mistake 'PostProccess'"print("notebook_inference.ipynb does not contain spelling mistake 'PostProccess'.")
exceptExceptionase:
raiseAssertionError(e)
if__name__=="__main__":
test_notebook_train()
test_notebook_inference()
How to run:
python3 YOLO/reproduce.py
Expected Result:
Traceback (most recent call last):
File "YOLO/reproduce.py", line 18, in test_notebook_inference
assert 'PostProccess' not in content, "notebook_inference.ipynb contains spelling mistake 'PostProccess'"
AssertionError: notebook_inference.ipynb contains spelling mistake 'PostProccess'
notebook_train.ipynb is not empty.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "YOLO/reproduce.py", line 25, in <module>
test_notebook_inference()
File "YOLO/reproduce.py", line 21, in test_notebook_inference
raise AssertionError(e)
AssertionError: notebook_inference.ipynb contains spelling mistake 'PostProccess'
Thank you for your valuable contribution to this project and we appreciate your feedback! Please respond with an emoji if you find this script helpful. Feel free to comment below if any improvements are needed.
notebook_predict.ipynb has some spelling mistakes like: PostProccess instead of PostProcess
I'm trying to use examples/notebook_train.ipynb but is empty now. I'm not sure if it's a bug, or still not ready.
The text was updated successfully, but these errors were encountered: