Traceback (most recent call last):


 "test_network.py", line 11, in <module>

model.initialize(model='net-lin',net='alex',use_gpu=False)


 "/Users/faro/repositories/PerceptualSimilarity/models/dist_model.py", line 38, in initialize

self.net.load_state_dict(torch.load('./weights/%s.pth'%net, map_location=lambda storage, loc: 'cpu'))


 "/Users/faro/repositories/PerceptualSimilarity/.env/lib/python3.6/site-packages/torch/serialization.py", line 261, in load

return _load(f, map_location, pickle_module)


 "/Users/faro/repositories/PerceptualSimilarity/.env/lib/python3.6/site-packages/torch/serialization.py", line 409, in _load

result = unpickler.load()


 "/Users/faro/repositories/PerceptualSimilarity/.env/lib/python3.6/site-packages/torch/_utils.py", line 74, in _rebuild_tensor

module = importlib.import_module(storage.__module__)
AttributeError: 'str' object has no attribute '__module__'

Traceback (most recent call last):


 "scripts/run_experiments.py", line 214, in <module>

run_all_LMs(parameters)


 "scripts/run_experiments.py", line 207, in run_all_LMs

run_experiments(*parameters, input_param=ip, use_negated_probes=False)


 "scripts/run_experiments.py", line 125, in run_experiments

model = build_model_by_name(model_type_name, args)


 "LAMA-master/lama/modules/__init__.py", line 33, in build_model_by_name

return MODEL_NAME_TO_CLASS[lm](args)


 "LAMA-master/lama/modules/transformerxl_connector.py", line 33, in __init__

self.vocab = list(self.tokenizer.idx2sym)
AttributeError: 'NoneType' object has no attribute 'idx2sym'
