Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug fix]Data Parallel issue with types.MethodType #145

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

wpwei
Copy link

@wpwei wpwei commented Apr 4, 2019

Problems / Bugs

  1. Data Parallel issue with types.MethodType Data Parallel issue with types.MethodType #112
  2. The 'num_classes' is not passed to torchvision models. All models are initiated for 1000 classes even if num_classes parameter is set to other numbers. It is confusing when using this interface with torchvision models from scratch.

Fix

  1. Rewrite the classes for torchvision model.
  2. Simply pass the 'num_classes' to torchvision.models interface will fix it.

@wpwei wpwei changed the title [Bug fix]'num_classes' parameter is not functional for torch vision models. [Bug fix]Data Parallel issue with types.MethodType Apr 4, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant