{"action":"created","issue":{"url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune/issues/4","repository_url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune","labels_url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune/issues/4/comments","events_url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune/issues/4/events","html_url":"https://github.com/USTC-Video-Understanding/I3D_Finetune/issues/4","id":331615549,"node_id":"MDU6SXNzdWUzMzE2MTU1NDk=","number":4,"title":"Training on Own Dataset","user":{"login":"OgLocGreen","id":33130085,"node_id":"MDQ6VXNlcjMzMTMwMDg1","avatar_url":"https://avatars3.githubusercontent.com/u/33130085?v=4","gravatar_id":"","url":"https://api.github.com/users/OgLocGreen","html_url":"https://github.com/OgLocGreen","followers_url":"https://api.github.com/users/OgLocGreen/followers","following_url":"https://api.github.com/users/OgLocGreen/following{/other_user}","gists_url":"https://api.github.com/users/OgLocGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/OgLocGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OgLocGreen/subscriptions","organizations_url":"https://api.github.com/users/OgLocGreen/orgs","repos_url":"https://api.github.com/users/OgLocGreen/repos","events_url":"https://api.github.com/users/OgLocGreen/events{/privacy}","received_events_url":"https://api.github.com/users/OgLocGreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-12T14:34:42Z","updated_at":"2018-06-13T02:01:55Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\nthank you for the work. Is there an easy way to train the Models on my own Dataset, and some new Classes? I have tried it with 9 Classes(created _Classnum), but I get 2 Errors:\r\n\r\npython3 finetune.py ucf9 rgb 1\r\n/usr/local/lib/python3.5/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\nWARNING:tensorflow:From /usr/local/lib/python3.5/dist-packages/tensorflow/contrib/learn/python/learn/datasets/base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.\r\nInstructions for updating:\r\nUse the retry module or similar alternatives.\r\n2018-06-12 16:28:40.489353: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA\r\n2018-06-12 16:28:40.576145: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:898] 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-06-12 16:28:40.576407: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1344] Found device 0 with properties: \r\nname: GeForce GTX 960M major: 5 minor: 0 memoryClockRate(GHz): 1.176\r\npciBusID: 0000:01:00.0\r\ntotalMemory: 3.95GiB freeMemory: 3.42GiB\r\n2018-06-12 16:28:40.576421: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1423] Adding visible gpu devices: 0\r\n2018-06-12 16:28:41.162533: I tensorflow/core/common_runtime/gpu/gpu_device.cc:911] Device interconnect StreamExecutor with strength 1 edge matrix:\r\n2018-06-12 16:28:41.162570: I tensorflow/core/common_runtime/gpu/gpu_device.cc:917]      0 \r\n2018-06-12 16:28:41.162575: I tensorflow/core/common_runtime/gpu/gpu_device.cc:930] 0:   N \r\n2018-06-12 16:28:41.162758: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 3151 MB memory) -> physical GPU (device: 0, name: GeForce GTX 960M, pci bus id: 0000:01:00.0, compute capability: 5.0)\r\nINFO:tensorflow:Restoring parameters from ./data/checkpoints/rgb_imagenet/model.ckpt\r\n----Here we start!----\r\nOutput wirtes to output/finetune-ucf9-rgb-1\r\n2018-06-12 16:29:14.904305: W tensorflow/core/framework/op_kernel.cc:1261] Invalid argument: TypeError: 'NoneType' object is not iterable\r\nTraceback (most recent call last):\r\n\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/script_ops.py\", line 147, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"finetune.py\", line 73, in process_video\r\n    clip_seq, label_seq = data.next_batch(1, _CLIP_SIZE)\r\n\r\n  File \"/home/chris/Desktop/Action/I3D_Finetune/lib/action_dataset.py\", line 33, in next_batch\r\n    self.videos[self.perm[i]].get_frames(frame_num, data_augment=data_augment))\r\n\r\n  File \"/home/chris/Desktop/Action/I3D_Finetune/lib/video_3d.py\", line 41, in get_frames\r\n    frames.extend(self.load_img((i-1)%self.total_frame_num+1))\r\n\r\nTypeError: 'NoneType' object is not iterable\r\n\r\n\r\n2018-06-12 16:29:14.904819: W tensorflow/core/framework/op_kernel.cc:1261] Invalid argument: TypeError: 'NoneType' object is not iterable\r\nTraceback (most recent call last):\r\n\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/script_ops.py\", line 147, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"finetune.py\", line 73, in process_video\r\n    clip_seq, label_seq = data.next_batch(1, _CLIP_SIZE)\r\n\r\n  File \"/home/chris/Desktop/Action/I3D_Finetune/lib/action_dataset.py\", line 33, in next_batch\r\n    self.videos[self.perm[i]].get_frames(frame_num, data_augment=data_augment))\r\n\r\n  File \"/home/chris/Desktop/Action/I3D_Finetune/lib/video_3d.py\", line 41, in get_frames\r\n    frames.extend(self.load_img((i-1)%self.total_frame_num+1))\r\n\r\nTypeError: 'NoneType' object is not iterable\r\n \r\n---------------------------------------------------------------------\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"finetune.py\", line 291, in <module>\r\n    main(**vars(p.parse_args()))\r\n  File \"finetune.py\", line 230, in main\r\n    feed_dict={dropout_holder: _DROPOUT, is_train_holder: True})\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 905, in run\r\n    run_metadata_ptr)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1140, in _run\r\n    feed_dict_tensor, options, run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1321, in _do_run\r\n    run_metadata)\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py\", line 1340, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: 'NoneType' object is not iterable\r\nTraceback (most recent call last):\r\n\r\n  File \"/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/script_ops.py\", line 147, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"finetune.py\", line 73, in process_video\r\n    clip_seq, label_seq = data.next_batch(1, _CLIP_SIZE)\r\n\r\n  File \"/home/chris/Desktop/Action/I3D_Finetune/lib/action_dataset.py\", line 33, in next_batch\r\n    self.videos[self.perm[i]].get_frames(frame_num, data_augment=data_augment))\r\n\r\n  File \"/home/chris/Desktop/Action/I3D_Finetune/lib/video_3d.py\", line 41, in get_frames\r\n    frames.extend(self.load_img((i-1)%self.total_frame_num+1))\r\n\r\nTypeError: 'NoneType' object is not iterable\r\n\r\n\r\n\t [[Node: PyFunc = PyFunc[Tin=[DT_STRING, DT_STRING, DT_STRING], Tout=[DT_FLOAT, DT_INT64], token=\"pyfunc_0\"](arg0, PyFunc/input_1, PyFunc/input_2)]]\r\n\t [[Node: IteratorGetNext = IteratorGetNext[output_shapes=[<unknown>, <unknown>], output_types=[DT_FLOAT, DT_INT64], _device=\"/job:localhost/replica:0/task:0/device:CPU:0\"](Iterator)]]\r\n\t [[Node: IteratorGetNext/_467 = _Recv[client_terminated=false, recv_device=\"/job:localhost/replica:0/task:0/device:GPU:0\", send_device=\"/job:localhost/replica:0/task:0/device:CPU:0\", send_device_incarnation=1, tensor_name=\"edge_141_IteratorGetNext\", tensor_type=DT_INT64, _device=\"/job:localhost/replica:0/task:0/device:GPU:0\"]()]]\r\n\r\n\r\nThe First Error appears a dozen times. The second only two times. \r\nI can't find whats the problem here. Maybe u can help me. \r\n"},"comment":{"url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune/issues/comments/396789569","html_url":"https://github.com/USTC-Video-Understanding/I3D_Finetune/issues/4#issuecomment-396789569","issue_url":"https://api.github.com/repos/USTC-Video-Understanding/I3D_Finetune/issues/4","id":396789569,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njc4OTU2OQ==","user":{"login":"vra","id":5562395,"node_id":"MDQ6VXNlcjU1NjIzOTU=","avatar_url":"https://avatars3.githubusercontent.com/u/5562395?v=4","gravatar_id":"","url":"https://api.github.com/users/vra","html_url":"https://github.com/vra","followers_url":"https://api.github.com/users/vra/followers","following_url":"https://api.github.com/users/vra/following{/other_user}","gists_url":"https://api.github.com/users/vra/gists{/gist_id}","starred_url":"https://api.github.com/users/vra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vra/subscriptions","organizations_url":"https://api.github.com/users/vra/orgs","repos_url":"https://api.github.com/users/vra/repos","events_url":"https://api.github.com/users/vra/events{/privacy}","received_events_url":"https://api.github.com/users/vra/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T02:01:55Z","updated_at":"2018-06-13T02:01:55Z","author_association":"CONTRIBUTOR","body":"Hi @OgLocGreen ,\r\nThanks for your attention. I am reading your error outputs. Could you please try using python2? I don't know if this is an issue about python version but you can try first. "}}
{"actor":{"display_login":"vra"}}