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

expanding dimension to solve the dimension incompatibility #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 19, 2024

  1. expanding dimension to solve the dimension incompatibility

    Solving value error in code block 55:
    
    ---------------------------------------------------------------------------
    ValueError                                Traceback (most recent call last)
    <ipython-input-55-9020ca8664fe> in <cell line: 25>()
         23 #inputs = processor(single_patch, return_tensors="pt")
         24 #Now try with bounding boxes. Remember to uncomment.
    ---> 25 inputs = processor(single_patch, input_points=input_points, return_tensors="pt")
         26 
         27 # Move the input tensor to the GPU if it's not already there
    
    5 frames
    /usr/local/lib/python3.10/dist-packages/transformers/image_utils.py in infer_channel_dimension_format(image, num_channels)
        198         first_dim, last_dim = 1, 3
        199     else:
    --> 200         raise ValueError(f"Unsupported number of image dimensions: {image.ndim}")
        201 
        202     if image.shape[first_dim] in num_channels:
    
    ValueError: Unsupported number of image dimensions: 2
    sanjeev4427 authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    38e82fc View commit details
    Browse the repository at this point in the history