Skip to content

Conversation

@Animatory
Copy link
Contributor

Hello,

I replaced None by nn.Identity() in HRNet initialization functions because when there is a non-module object in nn.ModuleList torch.jit.trace fails. Also made a small code refactoring (removed unused imports, sorted them according to PEP 8, removed spaces in dict definition).

Trained a segmentator based on it and traced with torchscript. Everything works well!

@rwightman rwightman merged commit 6cc11a8 into huggingface:master May 6, 2020
@rwightman
Copy link
Collaborator

Looks good, thanks

@Animatory Animatory deleted the fix_HRNet branch May 6, 2020 06:17
guoriyue pushed a commit to guoriyue/pytorch-image-models that referenced this pull request May 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants