Naver-AI-Hackathon / AI-Vision

67 stars 34 forks source link

submit -t 시 NotImplementedError 가 발생합니다. #237

Closed mkseo17 closed 5 years ago

mkseo17 commented 5 years ago

Informations

CLI

NSML login ID 가 무엇인가요? mkseo17

문제가 발생한 세션은 어떤건가요? (bug message or screenshot) BALVC/ir_ph2/43

재현방법은 어떻게 되나요? 올려주신 baseline code를 가져와 ( def infer(queries, _): print('start infer') test_path = DATASET_PATH + '/test/test_data' db = [os.path.join(test_path, 'reference', path) for path in os.listdir(os.path.join(test_path, 'reference'))] 으로 infer함수가 시작되는 baseline code )

keras part를 pytorch로 고쳤습니다

예상했던 동작방식은 무엇인가요? 세션 42의 9999 모델을 받아 적절히 infer를 해주리라 예상했습니다.

제안하고 싶은 해결방법이 있나요? NotImplementedError가 발생하는 부분을 찾고 싶습니다.

nsml-admin commented 5 years ago

안녕하세요,

  File "main.py", line 54, in infer
    queries, query_vecs, references, reference_vecs = get_feature(model, queries, db)
  File "main.py", line 149, in get_feature
    for batch_idx, queries_img in enumerate(queries_loader):
  File "/opt/conda/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 501, in __iter__
    return _DataLoaderIter(self)
  File "/opt/conda/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 297, in __init__
    self._put_indices()
  File "/opt/conda/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 345, in _put_indices
    indices = next(self.sample_iter, None)
  File "/opt/conda/lib/python3.5/site-packages/torch/utils/data/sampler.py", line 138, in __iter__
    for idx in self.sampler:
  File "/opt/conda/lib/python3.5/site-packages/torch/utils/data/sampler.py", line 34, in __iter__
    return iter(range(len(self.data_source)))
  File "/opt/conda/lib/python3.5/site-packages/torch/utils/data/dataset.py", line 20, in __len__
    raise NotImplementedError
NotImplementedError

다음과같습니다.

mkseo17 commented 5 years ago

감사합니다!