-
Notifications
You must be signed in to change notification settings - Fork 309
Description
❓ Questions & Help
安装后报错 无法下载数据集 python版本3.8 pytorch>=2.0.0 (换了很多个都报错)
No such file or directory: 'Cora'
(CogDL) root@autodl-container-2f064db505-2ba9ec43:~/autodl-tmp/CogDL# python scripts/train.py --dataset cora --model gcn gat
/root/autodl-tmp/CogDL/cogdl/options.py:158: UserWarning: Please ensure that models could use the same model wrapper!
warnings.warn("Please ensure that models could use the same model wrapper!")
Namespace(activation='relu', actnn=False, alpha=0.2, attn_drop=0.5, checkpoint_path='./checkpoints/model.pt', clip_grad_norm=5.0, cpu=False, cpu_inference=False, dataset=['cora'], devices=[0], distributed=False, do_test=True, do_valid=True, dropout=0.6, dw='node_classification_dw', epochs=500, eval_step=1, fp16=False, hidden_size=8, last_nhead=1, load_emb_path=None, local_rank=0, log_path='.', logger=None, lr=0.01, master_addr='localhost', master_port=13425, max_epoch=None, model=['gcn', 'gat'], mw='node_classification_mw', n_trials=3, n_warmup_steps=0.0, nhead=8, norm=None, nstage=1, num_classes=None, num_features=None, num_layers=2, patience=100, progress_bar='epoch', project='cogdl-exp', residual=False, resume_training=False, return_model=False, rp_ratio=1, save_emb_path=None, seed=[1], split=[0], unsup=False, use_best_config=False, weight_decay=0)
|----------------------------------------------------------------------------------------|
*** Running (cora , gcn , node_classification_dw , node_classification_mw ) |
---|
Downloading https://cloud.tsinghua.edu.cn/d/6808093f7f8042bfa1f0/files/?p=%2Fcora.zip&dl=1 |
unpacking cora.zip |
Traceback (most recent call last): |
File "scripts/train.py", line 9, in |
experiment(dataset=args.dataset, model=args.model, args=args)
File "/root/autodl-tmp/CogDL/cogdl/experiments.py", line 370, in experiment
return raw_experiment(args)
File "/root/autodl-tmp/CogDL/cogdl/experiments.py", line 274, in raw_experiment
results = [train(args) for args in variant_args_generator(args, variants)]
File "/root/autodl-tmp/CogDL/cogdl/experiments.py", line 274, in
results = [train(args) for args in variant_args_generator(args, variants)]
File "/root/autodl-tmp/CogDL/cogdl/experiments.py", line 124, in train
dataset = build_dataset(args)
File "/root/autodl-tmp/CogDL/cogdl/datasets/init.py", line 84, in build_dataset
dataset = build_dataset_from_name(args.dataset, args.split)
File "/root/autodl-tmp/CogDL/cogdl/datasets/init.py", line 60, in build_dataset_from_name
return dataset_class()
File "/root/autodl-tmp/CogDL/cogdl/datasets/planetoid_data.py", line 190, in init
super(CoraDataset, self).init(path, dataset)
File "/root/autodl-tmp/CogDL/cogdl/datasets/planetoid_data.py", line 120, in init
super(Planetoid, self).init(root)
File "/root/autodl-tmp/CogDL/cogdl/data/dataset.py", line 86, in init
self._download()
File "/root/autodl-tmp/CogDL/cogdl/data/dataset.py", line 117, in _download
self.download()
File "/root/autodl-tmp/CogDL/cogdl/datasets/planetoid_data.py", line 153, in download
untar(self.raw_dir, fname)
File "/root/autodl-tmp/CogDL/cogdl/utils/utils.py", line 53, in untar
shutil.unpack_archive(fullpath, path)
File "/root/miniconda3/envs/CogDL/lib/python3.8/shutil.py", line 1249, in unpack_archive
func(filename, extract_dir, **kwargs)
File "/root/miniconda3/envs/CogDL/lib/python3.8/shutil.py", line 1136, in _unpack_zipfile
raise ReadError("%s is not a zip file" % filename)
shutil.ReadError: data/Cora/raw/cora.zip is not a zip file