diff --git a/README.md b/README.md index 5cef7b0..0092b92 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ For the above translation rpy, only `a "translated text"` will be extracted. To After installing python 3.8, use pip to install the dependencies: ```bash -pip install -r requirements.txt +pip install -r requirements_full.txt ``` Once installed, launch the main program: ```bash @@ -388,7 +388,7 @@ These following instructions guide you to install suitable Pytorch that compatib | No running processes found | +-----------------------------------------------------------------------------+ ``` - It is shown that the CUDA version is 11.7. If you have run the command `pip install -r requirements.txt` before, you can skip the following step and goto Get started part. That version is what we use in `requirements.txt`. + It is shown that the CUDA version is 11.7. If you have run the command `pip install -r requirements_full.txt` before, you can skip the following step and goto Get started part. That version is what we use in `requirements_full.txt`. 2. Next, uninstall some libraries: ```bash pip uninstall torch torchaudio torchvision transformers @@ -563,4 +563,4 @@ The codes or libs we use or refer to: * [UlionTse/translators](https://github.com/UlionTse/translators), [GPL-3.0 License](https://github.com/UlionTse/translators?tab=GPL-3.0-1-ov-file) * Pre-translated RPY file: [RenPy](https://github.com/renpy/renpy/tree/master/launcher/game/tl), [MIT License for these rpy files](https://www.renpy.org/doc/html/license.html) * [resources/codes/projz_injection.py](resources/codes/projz_injection.py): [RenPy](https://github.com/renpy/renpy/blob/master/renpy/translation/generation.py), [MIT License for the code file](https://www.renpy.org/doc/html/license.html) -* Other python libs:[requirements.txt](./requirements.txt) +* Other python libs:[requirements_full.txt](./requirements_full.txt) diff --git a/README_zh.md b/README_zh.md index 5a32ffe..af43e4e 100644 --- a/README_zh.md +++ b/README_zh.md @@ -77,7 +77,7 @@ translate chinese scene_01_5f0ee2360: 安装python3.8后,使用pip安装依赖: ```bash -pip install -r requirements.txt +pip install -r requirements_full.txt ``` 安装完后,启动主程序: ```bash @@ -394,7 +394,7 @@ projz: | No running processes found | +-----------------------------------------------------------------------------+ ``` - 我们可以看到现在的CUDA版本为: 11.7(如果您的CUDA版本也是11.7,且使用了`pip install -r requirements.txt`成功地安装我们的环境,那么可以跳过以下步骤,因为`requirements.txt`中的指定的pytorch版本就是它) + 我们可以看到现在的CUDA版本为: 11.7(如果您的CUDA版本也是11.7,且使用了`pip install -r requirements_full.txt`成功地安装我们的环境,那么可以跳过以下步骤,因为`requirements_full.txt`中的指定的pytorch版本就是它) 2. 为了确保安装指定版本的Pytorch,在安装新版本前使用以下命令卸载旧版本Pytorch和transformers库: ```bash pip uninstall torch torchaudio torchvision transformers @@ -563,4 +563,4 @@ except Exception as e: * [UlionTse/translators](https://github.com/UlionTse/translators), [GPL-3.0 License](https://github.com/UlionTse/translators?tab=GPL-3.0-1-ov-file) * 预翻译RPY文件来源:[RenPy](https://github.com/renpy/renpy/tree/master/launcher/game/tl), [MIT License for these rpy files](https://www.renpy.org/doc/html/license.html) * [resources/codes/projz_injection.py](resources/codes/projz_injection.py): [RenPy](https://github.com/renpy/renpy/blob/master/renpy/translation/generation.py), [MIT License for the code file](https://www.renpy.org/doc/html/license.html) -* 其他使用的python库见:[requirements.txt](./requirements.txt) +* 其他使用的python库见:[requirements_full.txt](./requirements_full.txt) diff --git a/requirements.txt b/requirements.txt index 3387da1..34ee364 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,74 +1,50 @@ -accelerate==0.22.0 -altgraph==0.17.3 -attrs==23.1.0 -certifi==2023.7.22 -cffi==1.15.1 -charset-normalizer==3.2.0 -click==8.1.7 +altgraph==0.17.4 +attrs==23.2.0 +certifi==2024.2.2 +cffi==1.16.0 +charset-normalizer==3.3.2 colorama==0.4.6 cryptography==42.0.3 dill==0.3.8 -dl-translate==0.3.0 et-xmlfile==1.1.0 -exceptiongroup==1.1.3 -filelock==3.12.3 -fsspec==2023.9.0 +exceptiongroup==1.2.0 h11==0.14.0 -huggingface-hub==0.16.4 -idna==3.4 -importlib-metadata==6.8.0 -Jinja2==3.1.2 -joblib==1.3.2 +idna==3.6 +importlib-metadata==7.0.1 lxml==5.1.0 -MarkupSafe==2.1.3 -mpmath==1.3.0 multiprocess==0.70.16 -networkx==3.1 numpy==1.24.4 openpyxl==3.1.2 -outcome==1.2.0 -packaging==23.1 +outcome==1.3.0.post0 +packaging==23.2 pandas==2.0.3 pathos==0.3.2 pefile==2023.2.7 -Pillow==9.3.0 pox==0.3.4 ppft==1.7.6.8 prettytable==3.8.0 -protobuf==4.24.2 -psutil==5.9.5 pycparser==2.21 PyExecJS==1.5.1 -pyinstaller==5.13.2 -pyinstaller-hooks-contrib==2023.8 +pyinstaller==6.4.0 +pyinstaller-hooks-contrib==2024.1 PySocks==1.7.1 python-dateutil==2.8.2 -pytz==2023.3 +pytz==2024.1 pywin32-ctypes==0.2.2 PyYAML==6.0.1 regex==2023.8.8 requests==2.31.0 -sacremoses==0.0.53 -safetensors==0.3.3 selenium==4.12.0 -sentencepiece==0.1.99 six==1.16.0 sniffio==1.3.0 sortedcontainers==2.4.0 -sympy==1.12 tinydb==4.8.0 -tokenizers==0.13.3 -torch==2.0.1+cu117 -torchaudio==2.0.2+cu117 -torchvision==0.15.2+cu117 tqdm==4.66.1 -transformers==4.33.0 translators==5.8.9 -trio==0.22.2 -trio-websocket==0.10.3 -typing_extensions==4.7.1 -tzdata==2023.3 -urllib3==2.0.4 -wcwidth==0.2.6 +trio==0.24.0 +trio-websocket==0.11.1 +tzdata==2024.1 +urllib3==2.2.1 +wcwidth==0.2.13 wsproto==1.2.0 -zipp==3.16.2 +zipp==3.17.0 diff --git a/requirements_full.txt b/requirements_full.txt new file mode 100644 index 0000000..3387da1 --- /dev/null +++ b/requirements_full.txt @@ -0,0 +1,74 @@ +accelerate==0.22.0 +altgraph==0.17.3 +attrs==23.1.0 +certifi==2023.7.22 +cffi==1.15.1 +charset-normalizer==3.2.0 +click==8.1.7 +colorama==0.4.6 +cryptography==42.0.3 +dill==0.3.8 +dl-translate==0.3.0 +et-xmlfile==1.1.0 +exceptiongroup==1.1.3 +filelock==3.12.3 +fsspec==2023.9.0 +h11==0.14.0 +huggingface-hub==0.16.4 +idna==3.4 +importlib-metadata==6.8.0 +Jinja2==3.1.2 +joblib==1.3.2 +lxml==5.1.0 +MarkupSafe==2.1.3 +mpmath==1.3.0 +multiprocess==0.70.16 +networkx==3.1 +numpy==1.24.4 +openpyxl==3.1.2 +outcome==1.2.0 +packaging==23.1 +pandas==2.0.3 +pathos==0.3.2 +pefile==2023.2.7 +Pillow==9.3.0 +pox==0.3.4 +ppft==1.7.6.8 +prettytable==3.8.0 +protobuf==4.24.2 +psutil==5.9.5 +pycparser==2.21 +PyExecJS==1.5.1 +pyinstaller==5.13.2 +pyinstaller-hooks-contrib==2023.8 +PySocks==1.7.1 +python-dateutil==2.8.2 +pytz==2023.3 +pywin32-ctypes==0.2.2 +PyYAML==6.0.1 +regex==2023.8.8 +requests==2.31.0 +sacremoses==0.0.53 +safetensors==0.3.3 +selenium==4.12.0 +sentencepiece==0.1.99 +six==1.16.0 +sniffio==1.3.0 +sortedcontainers==2.4.0 +sympy==1.12 +tinydb==4.8.0 +tokenizers==0.13.3 +torch==2.0.1+cu117 +torchaudio==2.0.2+cu117 +torchvision==0.15.2+cu117 +tqdm==4.66.1 +transformers==4.33.0 +translators==5.8.9 +trio==0.22.2 +trio-websocket==0.10.3 +typing_extensions==4.7.1 +tzdata==2023.3 +urllib3==2.0.4 +wcwidth==0.2.6 +wsproto==1.2.0 +zipp==3.16.2