JiaminRen / RandWireNN

Pytorch Implementation of: "Exploring Randomly Wired Neural Networks for Image Recognition"
274 stars 42 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml' #9

Closed leidaguo closed 5 years ago

leidaguo commented 5 years ago

Hello, I have an error message, I don't know if this file is missing. I hope to get your reply. Thank you。 FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml'

JiaminRen commented 5 years ago

Can you give more error logs?

leidaguo commented 5 years ago

Enabled distributed training. Enabled distributed training. Enabled distributed training. Enabled distributed training. Enabled distributed training. Enabled distributed training. Enabled distributed training. Enabled distributed training. Traceback (most recent call last): File "train.py", line 305, in main() File "train.py", line 57, in main model = CNN(args) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/model.py", line 114, in init save_graph(graph, os.path.join(args.model_dir, 'conv2.yaml')) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/utils.py", line 33, in save_graph nx.write_yaml(graph, path) File "", line 2, in write_yaml File "/raid/home/leidaguo/anaconda3/lib/python3.6/site-packages/networkx/utils/decorators.py", line 205, in _open_file fobj = _dispatch_dict[ext](path, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml' Traceback (most recent call last): File "train.py", line 305, in main() File "train.py", line 57, in main model = CNN(args) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/model.py", line 114, in init save_graph(graph, os.path.join(args.model_dir, 'conv2.yaml')) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/utils.py", line 33, in save_graph nx.write_yaml(graph, path) File "", line 2, in write_yaml File "/raid/home/leidaguo/anaconda3/lib/python3.6/site-packages/networkx/utils/decorators.py", line 205, in _open_file fobj = _dispatch_dict[ext](path, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml' Traceback (most recent call last): File "train.py", line 305, in main() File "train.py", line 57, in main model = CNN(args) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/model.py", line 114, in init save_graph(graph, os.path.join(args.model_dir, 'conv2.yaml')) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/utils.py", line 33, in save_graph nx.write_yaml(graph, path) File "", line 2, in write_yaml File "/raid/home/leidaguo/anaconda3/lib/python3.6/site-packages/networkx/utils/decorators.py", line 205, in _open_file fobj = _dispatch_dict[ext](path, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml' Traceback (most recent call last): File "train.py", line 305, in main() File "train.py", line 57, in main model = CNN(args) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/model.py", line 114, in init save_graph(graph, os.path.join(args.model_dir, 'conv2.yaml')) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/utils.py", line 33, in save_graph nx.write_yaml(graph, path) File "", line 2, in write_yaml File "/raid/home/leidaguo/anaconda3/lib/python3.6/site-packages/networkx/utils/decorators.py", line 205, in _open_file fobj = _dispatch_dict[ext](path, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml' Traceback (most recent call last): File "train.py", line 305, in main() File "train.py", line 57, in main model = CNN(args) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/model.py", line 114, in init save_graph(graph, os.path.join(args.model_dir, 'conv2.yaml')) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/utils.py", line 33, in save_graph nx.write_yaml(graph, path) File "", line 2, in write_yaml File "/raid/home/leidaguo/anaconda3/lib/python3.6/site-packages/networkx/utils/decorators.py", line 205, in _open_file fobj = _dispatch_dict[ext](path, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml' Traceback (most recent call last): File "train.py", line 305, in main() File "train.py", line 57, in main model = CNN(args) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/model.py", line 114, in init save_graph(graph, os.path.join(args.model_dir, 'conv2.yaml')) File "/raid/home/leidaguo/nas/jiaminren/RandWireNN/utils.py", line 33, in save_graph nx.write_yaml(graph, path) File "", line 2, in write_yaml File "/raid/home/leidaguo/anaconda3/lib/python3.6/site-packages/networkx/utils/decorators.py", line 205, in _open_file fobj = _dispatch_dict[ext](path, mode=mode) FileNotFoundError: [Errno 2] No such file or directory: 'checkpoint/regular_c109_n32/conv2.yaml'

JiaminRen commented 5 years ago

Check if the train.py executed successfully. And is the path(args.model_dir) existed.

JiaminRen commented 5 years ago

check