Traceback (most recent call last):


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

train()


 "train.py", line 207, in train

yolact_net.load_weights(args.resume)


 "/home/ubuntu/yolact/yolact.py", line 490, in load_weights

self.load_state_dict(state_dict)


 "/home/ubuntu/anaconda3/envs/yolact-env/lib/python3.7/site-packages/torch/nn/modules/module.py", line 847, in load_state_dict

self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for Yolact:

Traceback (most recent call last):

 "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)

 "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 357, in run
for item in os.listdir(lib_dir):OSError: [Errno 2] 
 or directory not found: '/tmp/tmpXXXXXX/lib/python'