Traceback (most recent call last):


 "/home/ljh/.conda/envs/new-open-mmlab/lib/python3.7/threading.py", line 917, in _bootstrap_inner

self.run()


 "/home/ljh/.conda/envs/new-open-mmlab/lib/python3.7/threading.py", line 865, in run

self._target(*self._args, **self._kwargs)


 "demo/webcam_demo.py", line 57, in show_results

frame_queue.append(np.array(frame[:, :, ::-1]))
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):


 "sunset.py", line 222, in <module>

main(parser.parse_args())


 "sunset.py", line 126, in main

main_test(args)


 "sunset.py", line 210, in main_test

trainer.test(model, test_dataloaders=test_loader, verbose=True)


 "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/states.py", line 48, in wrapped_fn

result = fn(self, *args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py", line 1346, in test

if test_dataloaders and datamodule:


 "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 325, in __len__

length = self._IterableDataset_len_called = len(self.dataset)
TypeError: 'NoneType' object cannot be interpreted as an integer
