{"action":"created","issue":{"url":"https://api.github.com/repos/argman/EAST/issues/147","repository_url":"https://api.github.com/repos/argman/EAST","labels_url":"https://api.github.com/repos/argman/EAST/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/argman/EAST/issues/147/comments","events_url":"https://api.github.com/repos/argman/EAST/issues/147/events","html_url":"https://github.com/argman/EAST/issues/147","id":316675569,"node_id":"MDU6SXNzdWUzMTY2NzU1Njk=","number":147,"title":"Failed to find any matching files for /tmp/resnet_v1_50.ckpt","user":{"login":"YanShuang17","id":28646665,"node_id":"MDQ6VXNlcjI4NjQ2NjY1","avatar_url":"https://avatars1.githubusercontent.com/u/28646665?v=4","gravatar_id":"","url":"https://api.github.com/users/YanShuang17","html_url":"https://github.com/YanShuang17","followers_url":"https://api.github.com/users/YanShuang17/followers","following_url":"https://api.github.com/users/YanShuang17/following{/other_user}","gists_url":"https://api.github.com/users/YanShuang17/gists{/gist_id}","starred_url":"https://api.github.com/users/YanShuang17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YanShuang17/subscriptions","organizations_url":"https://api.github.com/users/YanShuang17/orgs","repos_url":"https://api.github.com/users/YanShuang17/repos","events_url":"https://api.github.com/users/YanShuang17/events{/privacy}","received_events_url":"https://api.github.com/users/YanShuang17/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-23T06:17:52Z","updated_at":"2018-07-16T20:42:29Z","closed_at":"2018-04-24T06:37:24Z","author_association":"NONE","body":"when i began to train model, error occured:\r\n```\r\nys@ysubuntu:~/tensorflow/EAST$ python multigpu_train.py --gpu_list=0 --input_size=512 --batch_size_per_gpu=14 --checkpoint_path=/tmp/east_icdar2015_resnet_v1_50_rbox/ \\\r\n> --text_scale=512 --training_data_path=/data/ocr/icdar2015/ --geometry=RBOX --learning_rate=0.0001 --num_readers=24 \\\r\n> --pretrained_model_path=/tmp/resnet_v1_50.ckpt\r\n/usr/local/lib/python2.7/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n  from ._conv import register_converters as _register_converters\r\n('resnet_v1_50/block1', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(256)]))\r\n('resnet_v1_50/block2', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(512)]))\r\n('resnet_v1_50/block3', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(1024)]))\r\n('resnet_v1_50/block4', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(2048)]))\r\nShape of f_0 (?, ?, ?, 2048)\r\nShape of f_1 (?, ?, ?, 512)\r\nShape of f_2 (?, ?, ?, 256)\r\nShape of f_3 (?, ?, ?, 64)\r\nShape of h_0 (?, ?, ?, 2048), g_0 (?, ?, ?, 2048)\r\nShape of h_1 (?, ?, ?, 128), g_1 (?, ?, ?, 128)\r\nShape of h_2 (?, ?, ?, 64), g_2 (?, ?, ?, 64)\r\nShape of h_3 (?, ?, ?, 32), g_3 (?, ?, ?, 32)\r\nTraceback (most recent call last):\r\n  File \"multigpu_train.py\", line 180, in <module>\r\n    tf.app.run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py\", line 48, in run\r\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))\r\n  File \"multigpu_train.py\", line 136, in main\r\n    ignore_missing_vars=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/variables.py\", line 638, in assign_from_checkpoint_fn\r\n    reader = pywrap_tensorflow.NewCheckpointReader(model_path)\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py\", line 110, in NewCheckpointReader\r\n    return CheckpointReader(compat.as_bytes(filepattern), status)\r\n  File \"/usr/lib/python2.7/contextlib.py\", line 24, in __exit__\r\n    self.gen.next()\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors_impl.py\", line 466, in raise_exception_on_not_ok_status\r\n    pywrap_tensorflow.TF_GetCode(status))\r\ntensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /tmp/resnet_v1_50.ckpt\r\n```\r\nit may be the path problem, but i did put `resnet_v1_50.ckpt` file under the `./EAST/tmp/ ` folder.\r\nbelow is my file tree:\r\n```\r\n─ EAST\r\n│   ├── data\r\n│   │   └── ocr\r\n│   │       ├── icdar2015\r\n│   │       └── rename.py\r\n│   ├── data_util.py\r\n│   ├── data_util.pyc\r\n│   ├── demo_images\r\n│   │   ├── img_10.jpg\r\n│   │   ├── img_14.jpg\r\n│   │   ├── img_26.jpg\r\n│   │   ├── img_2.jpg\r\n│   │   ├── img_75.jpg\r\n│   │   └── web-demo.png\r\n│   ├── deploy.sh\r\n│   ├── eval.py\r\n│   ├── icdar.py\r\n│   ├── icdar.pyc\r\n│   ├── __init__.py\r\n│   ├── lanms\r\n│   │   ├── adaptor.cpp\r\n│   │   ├── adaptor.so\r\n│   │   ├── include\r\n│   │   │   ├── clipper\r\n│   │   │   └── pybind11\r\n│   │   ├── __init__.py\r\n│   │   ├── __init__.pyc\r\n│   │   ├── lanms.h\r\n│   │   ├── __main__.py\r\n│   │   └── Makefile\r\n│   ├── LICENSE\r\n│   ├── locality_aware_nms.py\r\n│   ├── locality_aware_nms.pyc\r\n│   ├── model.py\r\n│   ├── model.pyc\r\n│   ├── multigpu_train.py\r\n│   ├── nets\r\n│   │   ├── __init__.py\r\n│   │   ├── __init__.pyc\r\n│   │   ├── resnet_utils.py\r\n│   │   ├── resnet_utils.pyc\r\n│   │   ├── resnet_v1.py\r\n│   │   └── resnet_v1.pyc\r\n│   ├── readme.md\r\n│   ├── requirements.txt\r\n│   ├── run_demo_server.py\r\n│   ├── static\r\n│   │   └── css\r\n│   │       └── app.css\r\n│   ├── templates\r\n│   │   └── index.html\r\n│   ├── tmp\r\n│   │   ├── east_icdar2015_resnet_v1_50_rbox\r\n│   │   │   ├── checkpoint\r\n│   │   │   ├── model.ckpt-49491.data-00000-of-00001\r\n│   │   │   ├── model.ckpt-49491.index\r\n│   │   │   └── model.ckpt-49491.meta\r\n│   │   ├── images\r\n│   │   │   └── img_1.jpg\r\n│   │   └── resnet_v1_50.ckpt\r\n│   └── training_samples\r\n│       ├── img_1.jpg\r\n│       ├── img_1.txt\r\n│       ├── img_2.jpg\r\n│       └── img_2.txt\r\n\r\n```\r\nBesides that , I also can't run eval.py correctly:\r\n```\r\nys@ysubuntu:~/tensorflow/EAST$ python eval.py --test_data_path=/tmp/images/ --gpu_list=0 --checkpoint_path=/tmp/east_icdar2015_resnet_v1_50_rbox/ \\\r\n> --output_dir=/tmp/\r\nmake: Entering directory '/home/ys/tensorflow/EAST/lanms'\r\nmake: 'adaptor.so' is up to date.\r\nmake: Leaving directory '/home/ys/tensorflow/EAST/lanms'\r\n/usr/local/lib/python2.7/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n  from ._conv import register_converters as _register_converters\r\n('resnet_v1_50/block1', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(256)]))\r\n('resnet_v1_50/block2', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(512)]))\r\n('resnet_v1_50/block3', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(1024)]))\r\n('resnet_v1_50/block4', TensorShape([Dimension(None), Dimension(None), Dimension(None), Dimension(2048)]))\r\nShape of f_0 (?, ?, ?, 2048)\r\nShape of f_1 (?, ?, ?, 512)\r\nShape of f_2 (?, ?, ?, 256)\r\nShape of f_3 (?, ?, ?, 64)\r\nShape of h_0 (?, ?, ?, 2048), g_0 (?, ?, ?, 2048)\r\nShape of h_1 (?, ?, ?, 128), g_1 (?, ?, ?, 128)\r\nShape of h_2 (?, ?, ?, 64), g_2 (?, ?, ?, 64)\r\nShape of h_3 (?, ?, ?, 32), g_3 (?, ?, ?, 32)\r\n2018-04-23 14:15:19.369929: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.\r\n2018-04-23 14:15:19.369949: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.\r\n2018-04-23 14:15:19.369953: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.\r\n2018-04-23 14:15:19.369957: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.\r\n2018-04-23 14:15:19.369960: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.\r\n2018-04-23 14:15:19.487540: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\r\n2018-04-23 14:15:19.487762: I tensorflow/core/common_runtime/gpu/gpu_device.cc:940] Found device 0 with properties: \r\nname: GeForce GTX 1080 Ti\r\nmajor: 6 minor: 1 memoryClockRate (GHz) 1.6575\r\npciBusID 0000:01:00.0\r\nTotal memory: 10.91GiB\r\nFree memory: 10.13GiB\r\n2018-04-23 14:15:19.487774: I tensorflow/core/common_runtime/gpu/gpu_device.cc:961] DMA: 0 \r\n2018-04-23 14:15:19.487778: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0:   Y \r\n2018-04-23 14:15:19.487783: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0)\r\nTraceback (most recent call last):\r\n  File \"eval.py\", line 194, in <module>\r\n    tf.app.run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py\", line 48, in run\r\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))\r\n  File \"eval.py\", line 145, in main\r\n    model_path = os.path.join(FLAGS.checkpoint_path, os.path.basename(ckpt_state.model_checkpoint_path))\r\nAttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'\r\n```\r\nWhat's wrong ???"},"comment":{"url":"https://api.github.com/repos/argman/EAST/issues/comments/405375376","html_url":"https://github.com/argman/EAST/issues/147#issuecomment-405375376","issue_url":"https://api.github.com/repos/argman/EAST/issues/147","id":405375376,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTM3NTM3Ng==","user":{"login":"enathang","id":12566560,"node_id":"MDQ6VXNlcjEyNTY2NTYw","avatar_url":"https://avatars1.githubusercontent.com/u/12566560?v=4","gravatar_id":"","url":"https://api.github.com/users/enathang","html_url":"https://github.com/enathang","followers_url":"https://api.github.com/users/enathang/followers","following_url":"https://api.github.com/users/enathang/following{/other_user}","gists_url":"https://api.github.com/users/enathang/gists{/gist_id}","starred_url":"https://api.github.com/users/enathang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enathang/subscriptions","organizations_url":"https://api.github.com/users/enathang/orgs","repos_url":"https://api.github.com/users/enathang/repos","events_url":"https://api.github.com/users/enathang/events{/privacy}","received_events_url":"https://api.github.com/users/enathang/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T20:42:29Z","updated_at":"2018-07-16T20:42:29Z","author_association":"NONE","body":"Sure! The only modification I made in the code was to change line 13 (where the checkpoint_path flag is declared in both eval.py and multigpu_train.py to:\r\n   tf.app.flags.DEFINE_string('checkpoint_path', 'east_icdar2015_resnet_v1_50_rbox/', '')\r\n\r\nOr, if you want to pass in the checkpoint as a argument:\r\n   python multigpu_train.py --checkpoint_path=east_icdar2015_resnet_v1_50_rbox/\r\n\r\nAgain, the path you should give is dependent on where the checkpoint is actually located (I had the resnet folder in the same location as eval.py/multigpu_train.py). "}}
{"actor":{"display_login":"enathang"}}