Skip to content

Commit

Permalink
fixed issue FUNSD test result is very low! #1
Browse files Browse the repository at this point in the history
  • Loading branch information
andreagemelli committed Jan 2, 2023
1 parent 10580a3 commit 10421be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ Roadmap:
Setup the initial conda environment

```
conda create -n doc2graph python=3.9 ipython cudatoolkit=11.3 -c anaconda
conda activate doc2graph
conda create -n doc2graph python=3.9 ipython cudatoolkit=11.3 -c anaconda &&
conda activate doc2graph &&
cd doc2graph
```

Then, install [setuptools-git-versioning](https://pypi.org/project/setuptools-git-versioning/) and doc2graph package itself. The following has been tested only on linux: for different OS installations refer directly to [PyTorch](https://pytorch.org/get-started/previous-versions/) and [DGL](https://www.dgl.ai/pages/start.html) original documentation.

```
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
pip install dgl-cu113 dglgo -f https://data.dgl.ai/wheels/repo.html
pip install setuptools-git-versioning && pip install -e .
python -m spacy download en_core_web_lg
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url &&
https://download.pytorch.org/whl/cu113 &&
pip install dgl-cu113 dglgo -f https://data.dgl.ai/wheels/repo.html &&
pip install setuptools-git-versioning && pip install -e . &&
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.3.0/en_core_web_lg-3.3.0.tar.gz
```

Finally, create the project folder structure and download data:
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ numpy>=1.22
Pillow>=9.1.1
PyYAML==6.0
scikit_learn==1.0.2
setuptools==59.2.0
setuptools==65.5.1
setuptools_git_versioning==1.9.2
spacy==3.4.0
pydantic==1.9.1
spacy==3.3.0
pydantic==1.8.2
python-dotenv==0.20.0
gitpython==2.1.7
gitpython>=3.1.30
gitdb2==3.0.1
matplotlib==3.5.2
segmentation-models-pytorch==0.2.1
Expand Down

0 comments on commit 10421be

Please sign in to comment.