mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #6] Error with custom image/title #4
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmoham1476 on GitHub (Jan 7, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/6
When I try to add my image and description, am seeing this error. Does the input image need to be in any specific [format/resolution?]
Text(0.5, 1.0, 'Cosine similarity between text and image features')Error in callback <function install_repl_displayhook..post_execute at 0x7fd3eb1d1730> (for post_execute):
ValueError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/matplotlib/pyplot.py in post_execute()
107 def post_execute():
108 if matplotlib.is_interactive():
--> 109 draw_all()
110
111 # IPython >= 2
13 frames
/usr/local/lib/python3.6/dist-packages/matplotlib/colors.py in call(self, value, clip)
1015 result.fill(0) # Or should it be all masked? Or 0.5?
1016 elif vmin > vmax:
-> 1017 raise ValueError("minvalue must be less than or equal to maxvalue")
1018 else:
1019 if clip:
ValueError: minvalue must be less than or equal to maxvalue
ValueError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/IPython/core/formatters.py in call(self, obj)
332 pass
333 else:
--> 334 return printer(obj)
335 # Finally look for special method names
336 method = get_real_method(obj, self.print_method)
14 frames
/usr/local/lib/python3.6/dist-packages/matplotlib/colors.py in call(self, value, clip)
1015 result.fill(0) # Or should it be all masked? Or 0.5?
1016 elif vmin > vmax:
-> 1017 raise ValueError("minvalue must be less than or equal to maxvalue")
1018 else:
1019 if clip:
ValueError: minvalue must be less than or equal to maxvalue
@jongwook commented on GitHub (Jan 8, 2021):
Hi, I believe this happened while calling
plt.imshowon thesimilaritymatrix. (let me know if it wasn't)I had only
vmax=0.3specified, and this error might have happened when the minimum value of your matrix was above 0.3.In the latest commit (
ebd0e35aac) I addedvmin=0.1to theimshow()call, which should prevent this error. Let me know if this fixes the problem - thanks!SimpleTokenizerfor SAM3 text tokenizer convenience #518