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

problem in convert_to_onehot in model_vnet3d_multilabel.py #5

Open
anirban1513 opened this issue Dec 23, 2020 · 2 comments
Open

problem in convert_to_onehot in model_vnet3d_multilabel.py #5

anirban1513 opened this issue Dec 23, 2020 · 2 comments

Comments

@anirban1513
Copy link

Traceback (most recent call last):
File "train.py", line 35, in
trainVnet()
File "train.py", line 31, in trainVnet
[16, 8])
File "/home/ubuntu/new_lobe/model_vnet3d_multilabel.py", line 322, in train
batch_ys_onehot = convert_to_one_hot(batch_ys, self.numclass)
File "/home/ubuntu/new_lobe/model_vnet3d_multilabel.py", line 190, in convert_to_one_hot
one_hoty = np.eye(numclass)[one_hoty.reshape(-1).astype(np.int)]
IndexError: index 8 is out of bounds for axis 0 with size 7

@junqiangchen
Copy link
Owner

the number class is 7,but your is 8,there is different.

@Jishna04
Copy link

I am also having the same issue. I have attached the screenshot. can you please help me with that.[](url
1
)

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

3 participants