From 10421be75c606302c7190b3e8cb42298f9590117 Mon Sep 17 00:00:00 2001 From: andreagemelli Date: Mon, 2 Jan 2023 19:56:31 +0100 Subject: [PATCH] fixed issue FUNSD test result is very low! #1 --- README.md | 13 +++++++------ requirements.txt | 8 ++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 07b88fd..402169f 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/requirements.txt b/requirements.txt index e1eda99..c0662c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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