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 whe trying the lines on trying the Demo Examples Usage: IndexError: "Dimension out of range (expected to be in range of [-2, 1], but got 2)" #6

Open
AlefPontesSilva opened this issue Dec 4, 2023 · 2 comments

Comments

@AlefPontesSilva
Copy link

Hello!
My name is Alef de Pontes Silva. I'm currently studying Control and Automation Engineering in the institution CEFET/RJ - Nova Iguaçu (RJ, Brazil). I'm almost finishing college, and my final project relates to the ideia of the project of this repository.

So, I got all the material you let in github (https://github.com/gulvarol/bsldict) for learning it and aply it in our case (in the brazilian sign language, Libras) and tried to run the exemples on demo:
image

but I always get the same error:
image

Have someone ever see this? As all the material is on the computer, I think it should work. If you could help me, I'd be very grateful!

@mochaminte
Copy link

I'm also getting this issue

@mochaminte
Copy link

I found a fix for this issue, replace:

continuous_features = np.append(
    continuous_features,
    out["embds"].cpu().detach().squeeze(2).squeeze(2).squeeze(2).numpy(),
    axis=0
)

with

continuous_features = np.append(
            continuous_features, out["embds"].cpu().detach().squeeze(-1).numpy(), axis=0
)

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

2 participants