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

Can't import PostProcess and custom_logger from YOLO #139

Open
Jaykingamez opened this issue Dec 18, 2024 · 2 comments
Open

Can't import PostProcess and custom_logger from YOLO #139

Jaykingamez opened this issue Dec 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Jaykingamez
Copy link

Jaykingamez commented Dec 18, 2024

Describe the bug

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-9-b85eab8d12e7>](https://localhost:8080/#) in <cell line: 12>()
     10 sys.path.append(str(project_root))
     11 
---> 12 from yolo import (
     13     AugmentationComposer,
     14     Config,

ImportError: cannot import name 'PostProccess' from 'yolo' (/content/YOLO/yolo/__init__.py)

To Reproduce

I was trying to follow the YOLO/examples/notebook_inference.ipynb.
Steps to reproduce the behavior: I'm using Google Colab

  1. !pip install git+https://github.com/WongKinYiu/YOLO.git2. Click on '....'
  2. Use the following code
import sys
from pathlib import Path

import torch
from hydra import compose, initialize
from PIL import Image

project_root = Path().resolve().parent
print(project_root)
sys.path.append(str(project_root))

from yolo import (
    AugmentationComposer,
    Config,
    PostProccess,
    create_converter,
    create_model,
    custom_logger,
    draw_bboxes,
)

Expected behavior

I expect PostProcessing to be imported, commenting it away, I also can't import custom_logger.

Screenshots

If applicable, add screenshots to help explain your problem.

System Info (please complete the following ## information):

runtime

@Jaykingamez Jaykingamez added the bug Something isn't working label Dec 18, 2024
@vrindamathur1428
Copy link

There's a typo in "PostProcess". It's written as "PostProccess" - extra "c"

@tahsinalamin
Copy link

tahsinalamin commented Jan 8, 2025

@vrindamathur1428

There's a typo in "PostProcess". It's written as "PostProccess" - extra "c"

It worked. How about custom_logger? I didn't see any function named so in ./yolo/__init__.py

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

3 participants