Skip to content

Commit

Permalink
update requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
abse4411 committed Feb 20, 2024
1 parent 8da6292 commit 9d0d826
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 49 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
6 changes: 3 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
62 changes: 19 additions & 43 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
74 changes: 74 additions & 0 deletions requirements_full.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9d0d826

Please sign in to comment.