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

GoogleNet error #617

Closed
deepali-c opened this issue Aug 22, 2019 · 2 comments
Closed

GoogleNet error #617

deepali-c opened this issue Aug 22, 2019 · 2 comments

Comments

@deepali-c
Copy link

Observed the following error while trying to run googlenet model:

$ python main.py -a googlenet -b 64 --epochs 2  <myimagenetdir>
=> creating model 'googlenet'
Traceback (most recent call last):
  File "main.py", line 437, in <module>
    main()
  File "main.py", line 121, in main
    main_worker(args.gpu, ngpus_per_node, args)
  File "main.py", line 257, in main_worker
    train(train_loader, model, criterion, optimizer, epoch, args)
  File "main.py", line 299, in train
    output = model(input)
  File "<myenv>/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547, in __call__
    result = self.forward(*input, **kwargs)
  File "<myenv>/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 153, in forward
    return self.gather(outputs, self.output_device)
  File "<myenv>/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 165, in gather
    return gather(outputs, output_device, dim=self.dim)
  File "<myenv>/lib/python3.6/site-packages/torch/nn/parallel/scatter_gather.py", line 68, in gather
    res = gather_map(outputs)
  File "<myenv>/lib/python3.6/site-packages/torch/nn/parallel/scatter_gather.py", line 63, in gather_map
    return type(out)(map(gather_map, zip(*outputs)))
TypeError: __new__() missing 2 required positional arguments: 'aux_logits2' and 'aux_logits1'

Then came across #560 and pytorch/vision#678.

Shall I raise a PR to remove googlenet from supported models in imagenet/main.py.

@soumith
Copy link
Member

soumith commented Aug 23, 2019

that would be great, thanks deepali!

@msaroufim
Copy link
Member

googlenet no longer shows up anywhere in the imagenet directory

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