Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook_train.ipynb is empty and notebook_predict.ipynb has some mistakes #140

Open
vl1969s opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vl1969s
Copy link

vl1969s commented Dec 19, 2024

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.

image

@vl1969s vl1969s added the bug Something isn't working label Dec 19, 2024
@vl1969s vl1969s changed the title notebook_train.ipynb is empty notebook_train.ipynb is empty and notebook_predict.ipynb has some mistakes Dec 20, 2024
@reproduce-bot
Copy link

The following script is generated by AI Agent to help reproduce the issue:

# YOLO/reproduce.py
def test_notebook_train():
    try:
        with open("YOLO/examples/notebook_train.ipynb") as f:
            content = f.read()
        
        # Check if the notebook is not empty
        assert len(content.strip()) > 0, "notebook_train.ipynb is empty"
        print("notebook_train.ipynb is not empty.")
    except Exception as e:
        raise AssertionError(e)

def test_notebook_inference():
    try:
        with open("YOLO/examples/notebook_inference.ipynb") as f:
            content = f.read()
        
        # Check if the term 'PostProccess' is present
        assert 'PostProccess' not in content, "notebook_inference.ipynb contains spelling mistake 'PostProccess'"
        print("notebook_inference.ipynb does not contain spelling mistake 'PostProccess'.")
    except Exception as e:
        raise AssertionError(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.

Best regards from an AI Agent!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants