-
-
Notifications
You must be signed in to change notification settings - Fork 939
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support batched and float data in apply colormap #2886
Conversation
@vgilabert94 could you check/fix the typing issue? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. after green lights
Yes. I have doubts about how to solve it, because is a typing error with ColorMap class. This class generates a tensor in colormap.colors, do I have to inherit from a torch class?
|
Co-authored-by: Jo茫o Gustavo A. Amorim <joaogustavoamorim@gmail.com>
Co-authored-by: Jo茫o Gustavo A. Amorim <joaogustavoamorim@gmail.com>
Changes
fixes #2877
-- Also is posible to use int or uint in range [0-255] values with an internal normalization to [0-1].
Output:
Always the apply_colormap work in float dtype, because the problem that I detect here (#2877 (comment)) is when arange is used. I'm not sure why, but I tried to implement my function with arange and I kept getting this problem.
Type of change
Checklist