Closed ChloeWongxt closed 4 years ago
Hi, could you please try latest version of DGL (0.4.3), which updates the graph serialization module.
Hi,
May I know which code are you running?
Hi, could you please try latest version of DGL (0.4.3), which updates the graph serialization module.
Thanks for your answer. But it still doesnt work when I update to the lastest version of DGL(0.4.3). The DGL
s version of my environment is 0.4.3.post2
Hi, could you please try latest version of DGL (0.4.3), which updates the graph serialization module.
Thanks for your answer. But it still doesn
t work when I update to the lastest version of DGL(0.4.3). The DGL
s version of my environment is 0.4.3.post2
the code`link is https://github.com/THUDM/GCC
Did you properly download the pre-training dataset at https://github.com/THUDM/GCC/blob/master/GETTING_STARTED.md? This error seems the filename is not found.
Can you add some print at L58 at gcc/datasets/graph_dataset.py and verify the dgl_graphs_file is in the right location?
I finally deal with this question.yea~~~
line 554 of file train.py the datasets` path is
dgl_graphs_file="./data_bin/dgl/small.bin",
but when we download the pretraining dataset as the following step
python scripts/download.py --url https://drive.google.com/open?id=1JCHm39rf7HAJSp-1755wa32ToHCn2Twz --path data --fname small.bin
# For regions where Google is not accessible, use
# python scripts/download.py --url https://cloud.tsinghua.edu.cn/f/b37eed70207c468ba367/?dl=1 --path data --fname small.bin
the pretraing file will be ./data/small.bin
so the solution of this question is that you should new folder as this path ./data_bin/dgl/ and remove the file small.bin in this new folder, Or you can change the line 554 of file train.py as following
dgl_graphs_file="./data/small.bin"
I have spent 4 days to deal with it, even though this is a small question. But i am so happy to deal with this question. Because at the process of dealing with it, i improved a lot.
dgl._ffi.base.DGLError:Check failed: fs: Filename is invalid
Run link prediction example fails.
When i test my code
There are some troubles with it.
I don`t have any idea with what happens. Could you help me? thanks a lot.
paper`s name:GCC: Graph Contrastive Coding for Graph Neural NetworkPre-Training paper:https://arxiv.org/abs/2006.09963 code:https://github.com/THUDM/GCC
Error
Environment
scikit-learn==0.20.3 scipy==1.4.1 coverage==4.5.4 coveralls==1.9.2 black==19.3b0 pytest==5.3.2 networkx==2.3 numpy==1.18.2 matplotlib==3.1.0 seaborn==0.9.0 tqdm==4.43.0 tensorboard_logger==0.1.0
torch~=1.5.1 dgl~=0.4.3.post2 pandas~=1.0.5 requests~=2.24.0 psutil~=5.7.2 joblib~=0.16.0
Python:3.7 PyTorch 1.5.1 DGL 0.4.1 rdkit=2019.09.2.