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

run python mnist_visualize.py --model unbounded_stn --angle 90 --grid_size 4 error #9

Open
KakaVlasic opened this issue Feb 19, 2019 · 3 comments

Comments

@KakaVlasic
Copy link

hello! when I run python mnist_visualize.py --model unbounded_stn --angle 90 --grid_size 4, it appears following:

create model with STN
Traceback (most recent call last):
File "mnist_visualize.py", line 47, in
data_list = target2data_list[target]
KeyError: tensor(7)

any help will be appreciate!

@w11m
Copy link

w11m commented Feb 19, 2019

I have Same problem

@jackweiwang
Copy link

target2data_list = [list() for i in range(10)]

@MingqiangNing
Copy link

I think index shouldn't be a tensor, it should be int type, like this :

data_list = target2data_list[int(target)]

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

No branches or pull requests

4 participants