-
-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] - How to improve performance #325
Comments
The gpu usage doesn’t matter and python is only using a single core so the problem is most likely the memory, but could you upload the usage of memory and cpu for both commits? you could host a gpu server and run it not on your Mac. Since sugoi is an offline translator the performance is depending on ctranslate2. There is nothing that can be done about that. have you tried Google colab? I think it’s free and you can use cuda with it |
I’m confused why the usage is evenly distributed. Usually python only uses one core and it’s a pain to implement multiprocessing. It could be because of a different cpu architecture. the problem is that you are using to much memory. You have 12gb swap. I don’t know how much of it is due to the this repo. Are you using the offline translator with the newer version. Python is using 32gb of memory. |
@alb-ctrl why are you using --revert-upscaling |
So, if you have a M1 or other apple silicon Mac you can use their GPUs by using |
As I am working on it, with a M1 Pro, moving everything to the apple gpu using the
unfortunately the translation library:
for the PR opened here #533 |
Hello, I first found this repo on 05/2022 and I just found some time again to use it today 04/2023
im running Python 3.9.9 on a MacBook Pro 2020 M1 Memory 8 GB
when I first used this I was using this commit
commit 2aa41c1
it ran relatively fast (I tried it again today) although the translation wasn't as good as with the new code
python3 translate_demo.py --target-lang=ENG --image <path> --mode batch --manga2eng
after getting the latest commit 83c3799
I used google translate and It was taking too long and the translation wasn't as good (almost the same as the old code comparing the translations)
the one I liked the most is using sugoi in the new code but it is still taking too long. for 20 images is took 54 minutes with the following command
python3 -m manga_translator -v --mode batch --translator=sugoi -l ENG --manga2eng --revert-upscaling -I<path>
For anyone who uses a Mac is there any way to improve performance ?
or any configuration to improve performance ?
this are some screenshots
The text was updated successfully, but these errors were encountered: