{"action":"created","issue":{"url":"https://api.github.com/repos/yjxiong/tsn-pytorch/issues/62","repository_url":"https://api.github.com/repos/yjxiong/tsn-pytorch","labels_url":"https://api.github.com/repos/yjxiong/tsn-pytorch/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/yjxiong/tsn-pytorch/issues/62/comments","events_url":"https://api.github.com/repos/yjxiong/tsn-pytorch/issues/62/events","html_url":"https://github.com/yjxiong/tsn-pytorch/issues/62","id":360617039,"node_id":"MDU6SXNzdWUzNjA2MTcwMzk=","number":62,"title":"size  mismatch error when i loading BNInception ","user":{"login":"Jenniferlyt","id":43164384,"node_id":"MDQ6VXNlcjQzMTY0Mzg0","avatar_url":"https://avatars0.githubusercontent.com/u/43164384?v=4","gravatar_id":"","url":"https://api.github.com/users/Jenniferlyt","html_url":"https://github.com/Jenniferlyt","followers_url":"https://api.github.com/users/Jenniferlyt/followers","following_url":"https://api.github.com/users/Jenniferlyt/following{/other_user}","gists_url":"https://api.github.com/users/Jenniferlyt/gists{/gist_id}","starred_url":"https://api.github.com/users/Jenniferlyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jenniferlyt/subscriptions","organizations_url":"https://api.github.com/users/Jenniferlyt/orgs","repos_url":"https://api.github.com/users/Jenniferlyt/repos","events_url":"https://api.github.com/users/Jenniferlyt/events{/privacy}","received_events_url":"https://api.github.com/users/Jenniferlyt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-16T08:27:16Z","updated_at":"2018-10-20T12:01:17Z","closed_at":"2018-09-17T02:44:18Z","author_association":"NONE","body":"`cv3:~/Mytask/TSN/tsn$ python main.py ucf101 RGB \"/home/liyating/Mytask/TSN/tsn/tsn_model_parameters/ucf101_rgb_train_list\" \"/home/liyating/Mytask/TSN/tsn/tsn_model_parameters/ucf101_rgb_val_list\"    --arch BNInception --num_segments 3 \\\r\n>    --gd 20 --lr 0.001 --lr_steps 30 60 --epochs 80 \\\r\n>    -b 128 -j 8 --dropout 0.8 \\\r\n>    --snapshot_pref ucf101_bninception_\r\n\r\nInitializing TSN with base model: BNInception.\r\nTSN Configurations:\r\n    input_modality:     RGB\r\n    num_segments:       3\r\n    new_length:         1\r\n    consensus_module:   avg\r\n    dropout_ratio:      0.8\r\n`\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n`Traceback (most recent call last):\r\n  File \"main.py\", line 302, in <module>\r\n    main()\r\n  File \"main.py\", line 35, in main\r\n    consensus_type=args.consensus_type, dropout=args.dropout, partial_bn=not args.no_partialbn)\r\n  File \"/home/liyating/Mytask/TSN/tsn/models.py\", line 39, in __init__\r\n    self._prepare_base_model(base_model)\r\n  File \"/home/liyating/Mytask/TSN/tsn/models.py\", line 96, in _prepare_base_model\r\n    self.base_model = getattr(tf_model_zoo, base_model)()\r\n  File \"/home/liyating/Mytask/TSN/tsn/tf_model_zoo/bninception/pytorch_load.py\", line 35, in __init__\r\n    self.load_state_dict(torch.utils.model_zoo.load_url(weight_url))\r\n  File \"/home/liyating/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 719, in load_state_dict\r\n    self.__class__.__name__, \"\\n\\t\".join(error_msgs)))\r\nRuntimeError: Error(s) in loading state_dict for BNInception:\r\n        size mismatch for conv1_7x7_s2_bn.weight: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv1_7x7_s2_bn.bias: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv1_7x7_s2_bn.running_mean: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv1_7x7_s2_bn.running_var: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv2_3x3_reduce_bn.weight: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv2_3x3_reduce_bn.bias: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv2_3x3_reduce_bn.running_mean: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv2_3x3_reduce_bn.running_var: copying a param of torch.Size([64]) from checkpoint, where the shape is torch.Size([1, 64]) in current model.\r\n        size mismatch for conv2_3x3_bn.weight: copying a param of torch.Size([192]) from checkpoint, where the shape is torch.Size([1, 192]) in current model.\r\n`\r\n\r\n\r\n\r\nIhave some error ,could someone can help me ?\r\nthanks a lot!!!"},"comment":{"url":"https://api.github.com/repos/yjxiong/tsn-pytorch/issues/comments/431574150","html_url":"https://github.com/yjxiong/tsn-pytorch/issues/62#issuecomment-431574150","issue_url":"https://api.github.com/repos/yjxiong/tsn-pytorch/issues/62","id":431574150,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU3NDE1MA==","user":{"login":"lisitodyb","id":35802963,"node_id":"MDQ6VXNlcjM1ODAyOTYz","avatar_url":"https://avatars1.githubusercontent.com/u/35802963?v=4","gravatar_id":"","url":"https://api.github.com/users/lisitodyb","html_url":"https://github.com/lisitodyb","followers_url":"https://api.github.com/users/lisitodyb/followers","following_url":"https://api.github.com/users/lisitodyb/following{/other_user}","gists_url":"https://api.github.com/users/lisitodyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lisitodyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisitodyb/subscriptions","organizations_url":"https://api.github.com/users/lisitodyb/orgs","repos_url":"https://api.github.com/users/lisitodyb/repos","events_url":"https://api.github.com/users/lisitodyb/events{/privacy}","received_events_url":"https://api.github.com/users/lisitodyb/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T12:01:17Z","updated_at":"2018-10-20T12:01:17Z","author_association":"NONE","body":"i have the same error,can you tell me how to fix this?\r\nthank you so much!"}}
{"actor":{"display_login":"lisitodyb"}}