{"action":"closed","issue":{"url":"https://api.github.com/repos/zhreshold/mxnet-ssd/issues/86","repository_url":"https://api.github.com/repos/zhreshold/mxnet-ssd","labels_url":"https://api.github.com/repos/zhreshold/mxnet-ssd/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/zhreshold/mxnet-ssd/issues/86/comments","events_url":"https://api.github.com/repos/zhreshold/mxnet-ssd/issues/86/events","html_url":"https://github.com/zhreshold/mxnet-ssd/issues/86","id":230417581,"number":86,"title":"Shape mismatch when testing the model trained on my own data","user":{"login":"cainiao2hao","id":3748443,"avatar_url":"https://avatars0.githubusercontent.com/u/3748443?v=3","gravatar_id":"","url":"https://api.github.com/users/cainiao2hao","html_url":"https://github.com/cainiao2hao","followers_url":"https://api.github.com/users/cainiao2hao/followers","following_url":"https://api.github.com/users/cainiao2hao/following{/other_user}","gists_url":"https://api.github.com/users/cainiao2hao/gists{/gist_id}","starred_url":"https://api.github.com/users/cainiao2hao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cainiao2hao/subscriptions","organizations_url":"https://api.github.com/users/cainiao2hao/orgs","repos_url":"https://api.github.com/users/cainiao2hao/repos","events_url":"https://api.github.com/users/cainiao2hao/events{/privacy}","received_events_url":"https://api.github.com/users/cainiao2hao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-22T14:39:28Z","updated_at":"2017-05-23T12:43:51Z","closed_at":"2017-05-23T12:43:51Z","body":"Hi @zhreshold \r\nI train vgg16_ssd_512 on my own data (which contains 11 classes), the command I used is \r\n```bash\r\npython3.6 train.py --lr 0.0005 --batch-size 12 --train-path /data/cityscapes/train.rec\r\n  --voc07 False --label-width 910 --data-shape 512 --num-class 11\r\n  --class-names a,b,c,d,e,f,g,h,i,j,k --frequent 20 --finetune 1 --prefix model/ssd\r\n```\r\n\r\n\r\nThe parameters I used in 'demo.py' is \r\n```bash\r\npython3.6 demo.py --epoch 24 --images car.png\r\n  --thresh 0.5 --network vgg16_ssd_512 --prefix model/ssd --data-shape 512\r\n```\r\nand I change the class in 'demo.py' to \r\n```python\r\n# CLASSES = ('aeroplane', 'bicycle', 'bird', 'boat', \r\n#            'bottle', 'bus', 'car', 'cat', 'chair',\r\n#            'cow', 'diningtable', 'dog', 'horse',\r\n#            'motorbike', 'person', 'pottedplant',\r\n#            'sheep', 'sofa', 'train', 'tvmonitor')\r\nCLASSES = ('a', 'b', 'c', 'd',\r\n           'e', 'f', 'g', 'h', 'i',\r\n           'j', 'k',)\r\n```\r\n\r\n\r\nthen I get the error  \r\n**mxnet/dmlc-core/include/dmlc/./logging.h:303: [22:07:43] src/ndarray/ndarray.cc:239: Check failed: from.shape() == to->shape() operands shape mismatchfrom.shape = (48,256,3,3) to.shape=(72,256,3,3)**\r\n\r\nI train the model from the 'get_symbol_train' method, and in 'demo.py' it uses 'get_symbol', I don't understand why the shape is mismatched. Any idea about it? or is there any matters I should attention or check?\r\n\r\nthx.\r\n\r\n\r\n"}}
{"actor":{"display_login":"cainiao2hao"}}