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

[GUI] "gui.set_image" no longer accepts multi-channel scalar tensors #1260

Closed
yuanming-hu opened this issue Jun 16, 2020 · 0 comments · Fixed by #1264
Closed

[GUI] "gui.set_image" no longer accepts multi-channel scalar tensors #1260

yuanming-hu opened this issue Jun 16, 2020 · 0 comments · Fixed by #1264
Assignees
Labels
potential bug Something that looks like a bug but not yet confirmed

Comments

@yuanming-hu
Copy link
Member

Source: https://forum.taichi.graphics/t/homework0-barnsleyfern/804/2

This seems to be introduced recently between v0.6.7 and v0.6.10.

To Reproduce

import taichi as ti
import math

ti.init(arch=ti.gpu)

width = 660
height = 1000
pixels = ti.var(dt=ti.f32, shape=(width, height, 3))

gui = ti.GUI("test", (width, height))
gui.set_image(pixels)

Output:

AssertionError: Image resolution does not match GUI resolution
@yuanming-hu yuanming-hu added the potential bug Something that looks like a bug but not yet confirmed label Jun 16, 2020
@archibate archibate self-assigned this Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug Something that looks like a bug but not yet confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants