{"action":"opened","issue":{"url":"https://api.github.com/repos/nshaud/DeepNetsForEO/issues/17","repository_url":"https://api.github.com/repos/nshaud/DeepNetsForEO","labels_url":"https://api.github.com/repos/nshaud/DeepNetsForEO/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/nshaud/DeepNetsForEO/issues/17/comments","events_url":"https://api.github.com/repos/nshaud/DeepNetsForEO/issues/17/events","html_url":"https://github.com/nshaud/DeepNetsForEO/issues/17","id":245134983,"number":17,"title":"Is the \"extract_images.py\" script valid to extract DSM patches ?","user":{"login":"PraveerSINGH","id":10654232,"avatar_url":"https://avatars2.githubusercontent.com/u/10654232?v=4","gravatar_id":"","url":"https://api.github.com/users/PraveerSINGH","html_url":"https://github.com/PraveerSINGH","followers_url":"https://api.github.com/users/PraveerSINGH/followers","following_url":"https://api.github.com/users/PraveerSINGH/following{/other_user}","gists_url":"https://api.github.com/users/PraveerSINGH/gists{/gist_id}","starred_url":"https://api.github.com/users/PraveerSINGH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PraveerSINGH/subscriptions","organizations_url":"https://api.github.com/users/PraveerSINGH/orgs","repos_url":"https://api.github.com/users/PraveerSINGH/repos","events_url":"https://api.github.com/users/PraveerSINGH/events{/privacy}","received_events_url":"https://api.github.com/users/PraveerSINGH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-24T16:23:32Z","updated_at":"2017-07-24T16:23:32Z","closed_at":null,"body":"Hey,\r\n\r\nI want to build composite patches using the DSM, NDSM and NDVI. However when I try to extract patches over normal DSM tiff images using \"extract_images.py\" script, I face an error saying:\r\n\r\n`=== PROCESSING DSM ===                                                                                                                                                                                       \r\n  0%|                                                                                                                                                                                  | 0/3 [00:00<?, ?it/s]\r\nTraceback (most recent call last):                                                                                                                                                 | 0/57549 [00:00<?, ?it/s]\r\n  File \"extract_images.py\", line 126, in <module>\r\n    io.imsave('{}/{}.png'.format(DATASET_DIR + suffix + '_train', i), sample)\r\n  File \"/home/praveer/anaconda2/lib/python2.7/site-packages/skimage/io/_io.py\", line 133, in imsave\r\n    return call_plugin('imsave', fname, arr, plugin=plugin, **plugin_args)\r\n  File \"/home/praveer/anaconda2/lib/python2.7/site-packages/skimage/io/manage_plugins.py\", line 211, in call_plugin\r\n    return func(*args, **kwargs)\r\n  File \"/home/praveer/anaconda2/lib/python2.7/site-packages/skimage/io/_plugins/pil_plugin.py\", line 259, in imsave\r\n    img = ndarray_to_pil(arr, format_str=format_str)\r\n  File \"/home/praveer/anaconda2/lib/python2.7/site-packages/skimage/io/_plugins/pil_plugin.py\", line 171, in ndarray_to_pil\r\n    arr = img_as_uint(arr)\r\n  File \"/home/praveer/anaconda2/lib/python2.7/site-packages/skimage/util/dtype.py\", line 325, in img_as_uint\r\n    return convert(image, np.uint16, force_copy)\r\n  File \"/home/praveer/anaconda2/lib/python2.7/site-packages/skimage/util/dtype.py\", line 205, in convert\r\n    raise ValueError(\"Images of type float must be between -1 and 1.\")\r\nValueError: Images of type float must be between -1 and 1.\r\n`\r\nThanks in advance.\r\n\r\nPraveer"}}
{"actor":{"display_login":"PraveerSINGH"}}