{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/2957","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/2957/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/2957/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/2957/events","html_url":"https://github.com/tensorflow/models/issues/2957","id":279078516,"number":2957,"title":"Problem in \"regularizers.py\"","user":{"login":"AmitSoli","id":20577409,"avatar_url":"https://avatars1.githubusercontent.com/u/20577409?v=4","gravatar_id":"","url":"https://api.github.com/users/AmitSoli","html_url":"https://github.com/AmitSoli","followers_url":"https://api.github.com/users/AmitSoli/followers","following_url":"https://api.github.com/users/AmitSoli/following{/other_user}","gists_url":"https://api.github.com/users/AmitSoli/gists{/gist_id}","starred_url":"https://api.github.com/users/AmitSoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmitSoli/subscriptions","organizations_url":"https://api.github.com/users/AmitSoli/orgs","repos_url":"https://api.github.com/users/AmitSoli/repos","events_url":"https://api.github.com/users/AmitSoli/events{/privacy}","received_events_url":"https://api.github.com/users/AmitSoli/received_events","type":"User","site_admin":false},"labels":[{"id":421482076,"url":"https://api.github.com/repos/tensorflow/models/labels/stat:awaiting%20tensorflower","name":"stat:awaiting tensorflower","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-04T17:23:11Z","updated_at":"2018-02-19T22:36:57Z","closed_at":null,"author_association":"NONE","body":"### System information\r\n- **What is the top-level directory of the model you are using**:\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: No\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Linux Ubuntu 16.04\r\n- **TensorFlow installed from (source or binary)**:source\r\n- **TensorFlow version (use command below)**: ('v1.4.0-rc1-11-g130a514', '1.4.0')\r\n- **Bazel version (if compiling from source)**:\r\n- **CUDA/cuDNN version**:\r\n- **GPU model and memory**:\r\n- **Exact command to reproduce**: scripts/script_test_pretrained_models.sh\r\n\r\n### Describe the problem\r\nWhen trying to run the cognitive_mapping_and_planning/scripts/script_test_pretrained_models.sh, I get the error \"ValueError('scale cannot be an integer: %s' % (scale,))\" from the file tensorflow/contrib/layers/python/layers/regularizers.py.\r\nThis does not allow me to test the pretrained models.\r\nI tried to track this issue and came to a conclusion that it might happen because of incorrect use of default parameters to function \"l2_regularizer\". However, I find it hard to believe that it is an error in the code and I do not know how to solve it.\r\nWhen I tried forcing values instead of the one currently implemented, I got a bunch of other errors that showed me I am not in the right direction\r\n\r\n### Source code / logs\r\nInclude any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.\r\n\r\nTraceback (most recent call last):\r\n  File \"scripts/script_nav_agent_release.py\", line 253, in <module>\r\n    app.run()\r\n  File \"/home/amitx2/venv/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py\", line 48, in run\r\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))\r\n  File \"scripts/script_nav_agent_release.py\", line 89, in main\r\n    _launcher(FLAGS.config_name, FLAGS.logdir)\r\n  File \"scripts/script_nav_agent_release.py\", line 99, in _launcher\r\n    _test(args)\r\n  File \"scripts/script_nav_agent_release.py\", line 195, in _test\r\n    summary_mode=args.control.test_mode)\r\n  File \"/run/user/1001/gvfs/smb-share:server=132.68.147.228,share=anpl/anp-dl-project/research/cognitive_mapping_and_planning/tfcode/cmp.py\", line 285, in setup_to_run\r\n    num_maps=len(task_params.map_crop_sizes))\r\n  File \"/run/user/1001/gvfs/smb-share:server=132.68.147.228,share=anpl/anp-dl-project/research/cognitive_mapping_and_planning/tfcode/cmp.py\", line 196, in get_map_from_images\r\n    mapper_arch.encoder, freeze_conv, wt_decay, is_training)\r\n  File \"/run/user/1001/gvfs/smb-share:server=132.68.147.228,share=anpl/anp-dl-project/research/cognitive_mapping_and_planning/tfcode/nav_utils.py\", line 102, in get_repr_from_image\r\n    with slim.arg_scope(resnet_v2.resnet_utils.resnet_arg_scope(resnet_is_training)):\r\n  File \"/home/amitx2/venv/local/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py\", line 257, in resnet_arg_scope\r\n    weights_regularizer=regularizers.l2_regularizer(weight_decay),\r\n  File \"/home/amitx2/venv/local/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/regularizers.py\", line 92, in l2_regularizer\r\n    raise ValueError('scale cannot be an integer: %s' % (scale,))\r\nValueError: scale cannot be an integer: False\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/models/issues/comments/366818930","html_url":"https://github.com/tensorflow/models/issues/2957#issuecomment-366818930","issue_url":"https://api.github.com/repos/tensorflow/models/issues/2957","id":366818930,"user":{"login":"trihuynh88","id":12808405,"avatar_url":"https://avatars0.githubusercontent.com/u/12808405?v=4","gravatar_id":"","url":"https://api.github.com/users/trihuynh88","html_url":"https://github.com/trihuynh88","followers_url":"https://api.github.com/users/trihuynh88/followers","following_url":"https://api.github.com/users/trihuynh88/following{/other_user}","gists_url":"https://api.github.com/users/trihuynh88/gists{/gist_id}","starred_url":"https://api.github.com/users/trihuynh88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trihuynh88/subscriptions","organizations_url":"https://api.github.com/users/trihuynh88/orgs","repos_url":"https://api.github.com/users/trihuynh88/repos","events_url":"https://api.github.com/users/trihuynh88/events{/privacy}","received_events_url":"https://api.github.com/users/trihuynh88/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T22:36:57Z","updated_at":"2018-02-19T22:36:57Z","author_association":"NONE","body":"I am having the same problem. Were we able to fix this problem? @s-gupta "}}
{"actor":{"display_login":"trihuynh88"}}