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

IndexError: index-1 is out of bounds for dimension 0 with size 0 #2

Open
Wangxu930123 opened this issue May 30, 2019 · 1 comment
Open

Comments

@Wangxu930123
Copy link

When I did the neural style transfer experiment, I added SSN as normalization layers to the CovLayer and UpsampleCovLayer of TransformerNet, and trained the TransformerNet with COCO2014 train-set .When the iteration went to 1400 times, it stopped suddenly and appeared ” IndexError: index-1 is out of bounds for dimension 0 with size 0”. With IN, neither BN, GN nor SN encountered this problem. This same problem happened when I used SSN as normalization layers to train the ResNet-50 on Cifar-100 for image classification.
Have you ever met the above problem? Can you tell me how to solve it? Thank you very much.

@MengTianjian
Copy link
Collaborator

You can try to manually set the grad of fixed norms to None, it should solve this problem.

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