{"action":"created","issue":{"url":"https://api.github.com/repos/divamgupta/image-segmentation-keras/issues/20","repository_url":"https://api.github.com/repos/divamgupta/image-segmentation-keras","labels_url":"https://api.github.com/repos/divamgupta/image-segmentation-keras/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/divamgupta/image-segmentation-keras/issues/20/comments","events_url":"https://api.github.com/repos/divamgupta/image-segmentation-keras/issues/20/events","html_url":"https://github.com/divamgupta/image-segmentation-keras/issues/20","id":308781429,"number":20,"title":"`load_weights` requires h5py.","user":{"login":"lihao2333","id":33816754,"avatar_url":"https://avatars0.githubusercontent.com/u/33816754?v=4","gravatar_id":"","url":"https://api.github.com/users/lihao2333","html_url":"https://github.com/lihao2333","followers_url":"https://api.github.com/users/lihao2333/followers","following_url":"https://api.github.com/users/lihao2333/following{/other_user}","gists_url":"https://api.github.com/users/lihao2333/gists{/gist_id}","starred_url":"https://api.github.com/users/lihao2333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihao2333/subscriptions","organizations_url":"https://api.github.com/users/lihao2333/orgs","repos_url":"https://api.github.com/users/lihao2333/repos","events_url":"https://api.github.com/users/lihao2333/events{/privacy}","received_events_url":"https://api.github.com/users/lihao2333/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-27T00:34:43Z","updated_at":"2018-03-27T01:55:10Z","closed_at":null,"author_association":"NONE","body":"I `Download the sample prepared dataset`  and `Place the dataset1/ folder in data/`\r\nWhen I run \r\n```\r\npython visualizeDataset.py \\\r\n --images=\"data/dataset1/images_prepped_train/\" \\\r\n --annotations=\"data/dataset1/annotations_prepped_train/\" \\\r\n --n_classes=10 \r\n```\r\nIt works.\r\nBut when I run \r\n```\r\nTHEANO_FLAGS=device=cpu,floatX=float32  python  train.py  --save_weights_path=weights/ex1  --train_images=\"data/dataset1/images_prepped_train/\"  --train_annotations=\"data/dataset1/annotations_prepped_train/\"  --val_images=\"data/dataset1/images_prepped_test/\"  --val_annotations=\"data/dataset1/annotations_prepped_test/\"  --n_classes=10  --input_height=320  --input_width=640  --model_name=\"vgg_segnet\" --load_weights=\"data/vgg16_weights_th_dim_ordering_th_kernels.h5\"\r\n```\r\nIt comes to a bug\r\n```\r\nTraceback (most recent call last):\r\n  File \"train.py\", line 51, in <module>\r\n    m = modelFN( n_classes , input_height=input_height, input_width=input_width   )\r\n  File \"/home/Proj/T_keras/image-segmentation-keras/Models/VGGSegnet.py\", line 56, in VGGSegnet\r\n    vgg.load_weights(VGG_Weights_path)\r\n  File \"/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py\", line 2646, in load_weights\r\n    raise ImportError('`load_weights` requires h5py.')\r\nImportError: `load_weights` requires h5py.\r\n```\r\nWhat should I do? \r\nThanks a lot."},"comment":{"url":"https://api.github.com/repos/divamgupta/image-segmentation-keras/issues/comments/376369749","html_url":"https://github.com/divamgupta/image-segmentation-keras/issues/20#issuecomment-376369749","issue_url":"https://api.github.com/repos/divamgupta/image-segmentation-keras/issues/20","id":376369749,"user":{"login":"lihao2333","id":33816754,"avatar_url":"https://avatars0.githubusercontent.com/u/33816754?v=4","gravatar_id":"","url":"https://api.github.com/users/lihao2333","html_url":"https://github.com/lihao2333","followers_url":"https://api.github.com/users/lihao2333/followers","following_url":"https://api.github.com/users/lihao2333/following{/other_user}","gists_url":"https://api.github.com/users/lihao2333/gists{/gist_id}","starred_url":"https://api.github.com/users/lihao2333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihao2333/subscriptions","organizations_url":"https://api.github.com/users/lihao2333/orgs","repos_url":"https://api.github.com/users/lihao2333/repos","events_url":"https://api.github.com/users/lihao2333/events{/privacy}","received_events_url":"https://api.github.com/users/lihao2333/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T01:55:10Z","updated_at":"2018-03-27T01:55:10Z","author_association":"NONE","body":"I found that I don't download `h5 file` completely, I download it again, then it raise \r\n```\r\nValueError: Dimension 0 in both shapes must be equal, but are 102400 and 25088. Shapes are [102400,4096] and [25088,4096]. for 'Assign_26' (op: 'Assign') with input shapes: [102400,4096], [25088,4096].\r\n```\r\nAnd I found the solution on other issue.  It works !!\r\n"}}
{"actor":{"display_login":"lihao2333"}}