{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/2133","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/2133/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/2133/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/2133/events","html_url":"https://github.com/fchollet/keras/issues/2133","id":144517716,"number":2133,"title":"Negative values after RELU when loading a VGG model and poping layers","user":{"login":"leonardblier","id":10939049,"avatar_url":"https://avatars.githubusercontent.com/u/10939049?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardblier","html_url":"https://github.com/leonardblier","followers_url":"https://api.github.com/users/leonardblier/followers","following_url":"https://api.github.com/users/leonardblier/following{/other_user}","gists_url":"https://api.github.com/users/leonardblier/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardblier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardblier/subscriptions","organizations_url":"https://api.github.com/users/leonardblier/orgs","repos_url":"https://api.github.com/users/leonardblier/repos","events_url":"https://api.github.com/users/leonardblier/events{/privacy}","received_events_url":"https://api.github.com/users/leonardblier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-30T09:30:27Z","updated_at":"2016-04-22T13:41:42Z","closed_at":"2016-04-22T13:41:41Z","body":"Hi all,\r\n\r\nI have experienced a problem while using this implementation of VGG16 :https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3\r\nThe network is not the problem, I have some great results with it when I try to classify ImageNet.\r\n\r\nI needed to load the model with the pre-trained weights which can be found there : \r\nhttps://drive.google.com/file/d/0Bz7KyqmuGsilT0J5dmRCM0ROVHc/view\r\nThen, I wanted to use the output values of intermediate layers.\r\n\r\nBut when I look at an output coming after a \"relu\", it happens that some values are negative. When I compute the `np.min()` of the output, I get `-9.59634780884e-06`\r\n\r\nHere is a script reproducing the error. \r\nhttps://gist.github.com/leonardblier/ddb0cc75ad95ac8f644cf02c83cf82e7\r\n\r\nI have tried to do the same thing, but without loading the weights, and the min of the output is 0.\r\n\r\nDo you know where this problem could come from ? Am I doing a mistake while poping the layers ?\r\n\r\nBests !"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/213432029","html_url":"https://github.com/fchollet/keras/issues/2133#issuecomment-213432029","issue_url":"https://api.github.com/repos/fchollet/keras/issues/2133","id":213432029,"user":{"login":"leonardblier","id":10939049,"avatar_url":"https://avatars.githubusercontent.com/u/10939049?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardblier","html_url":"https://github.com/leonardblier","followers_url":"https://api.github.com/users/leonardblier/followers","following_url":"https://api.github.com/users/leonardblier/following{/other_user}","gists_url":"https://api.github.com/users/leonardblier/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardblier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardblier/subscriptions","organizations_url":"https://api.github.com/users/leonardblier/orgs","repos_url":"https://api.github.com/users/leonardblier/repos","events_url":"https://api.github.com/users/leonardblier/events{/privacy}","received_events_url":"https://api.github.com/users/leonardblier/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T13:41:41Z","updated_at":"2016-04-22T13:41:41Z","body":"It seems to me that this issue has been solved in the Keras 1 version. I close this issue."}}