Traceback (most recent call last):


 "scripts/retriever/interactive.py", line 27, in <module>

ranker = retriever.get_class('tfidf')(tfidf_path=args.model)


 "/media/jintian/Netac/CodeSpace/AISpace/pytorch_space/other_repos/DrQA/drqa/retriever/tfidf_doc_ranker.py", line 37, in __init__

matrix, metadata = utils.load_sparse_csr(tfidf_path)


 "/media/jintian/Netac/CodeSpace/AISpace/pytorch_space/other_repos/DrQA/drqa/retriever/utils.py", line 34, in load_sparse_csr

matrix = sp.csr_matrix((loader['data'], loader['indices'],
TypeError: 'int' object is not subscriptable

Traceback (most recent call last):


 "train.py", line 229, in <module>

train(cfg, writer, logger)


 "train.py", line 49, in train

augmentations=data_aug,


 "/home/lxc/PythonProjects/pytorch-semseg-master/ptsemseg/loader/pascal_voc_loader.py", line 73, in __init__

self.setup_annotations()


 "/home/lxc/PythonProjects/pytorch-semseg-master/ptsemseg/loader/pascal_voc_loader.py", line 199, in setup_annotations

path = pjoin(sbd_path, "dataset/train.txt")


 "/home/lxc/anaconda3/lib/python3.7/posixpath.py", line 80, in join

a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
