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

[SAM] Fixed shape issue in example in docstring #2083

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

cosmo3769
Copy link
Contributor

What does this PR do?

Fixed below given error:

TypeError                                 Traceback (most recent call last)
<ipython-input-15-3e0d7f8c6706> in <cell line: 2>()
      1 no_box = np.empty((1, 0, 2, 2))
      2 padded_points = np.concatenate(
----> 3     [points, np.zeros(1, 1, 2)], axis=1
      4 )
      5 padded_labels = np.concatenate(

TypeError: Cannot interpret '1' as a data type

@ianstenbit @tirthasheshpatel

Copy link
Contributor

@ianstenbit ianstenbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@ianstenbit ianstenbit merged commit dc67f2f into keras-team:master Sep 22, 2023
6 of 9 checks passed
ghost pushed a commit to y-vectorfield/keras-cv that referenced this pull request Nov 16, 2023
yuvraj-wale pushed a commit to yuvraj-wale/keras-cv that referenced this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants