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

Add Hub results.pandas() method #2725

Merged
merged 7 commits into from
Apr 7, 2021
Merged

Add Hub results.pandas() method #2725

merged 7 commits into from
Apr 7, 2021

Commits on Apr 6, 2021

  1. Add Hub results.pandas() method

    New method converts results from torch tensors to pandas DataFrames with column names.
    
    This PR may partially resolve issue #2703
    
    ```python
    print(results.pandas().xyxy[0])
    
             xmin        ymin        xmax        ymax  confidence  class    name
    0   57.068970  391.770599  241.383545  905.797852    0.868964    0.0  person
    1  667.661255  399.303589  810.000000  881.396667    0.851888    0.0  person
    2  222.878387  414.774231  343.804474  857.825073    0.838376    0.0  person
    3    4.205386  234.447678  803.739136  750.023376    0.658006    5.0     bus
    4    0.000000  550.596008   76.681190  878.669922    0.450596    0.0  person
    ```
    glenn-jocher committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    bfba802 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2021

  1. Update comments

    torch example input now shown resized to size=640 and also now a multiple of P6 stride 64 (see #2722 (comment))
    glenn-jocher committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    ccbe7de View commit details
    Browse the repository at this point in the history
  2. apply decorators

    glenn-jocher committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    2ff0dfb View commit details
    Browse the repository at this point in the history
  3. PEP8

    glenn-jocher committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    dd710dd View commit details
    Browse the repository at this point in the history
  4. Update common.py

    glenn-jocher committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    49563c7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    af52afa View commit details
    Browse the repository at this point in the history
  6. Update common.py

    glenn-jocher committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    69771d7 View commit details
    Browse the repository at this point in the history