rsxdalv / tts-generation-webui

TTS Generation Web UI (Bark, MusicGen + AudioGen, Tortoise, RVC, Vocos, Demucs, SeamlessM4T, MAGNet, StyleTTS2, MMS)
https://rsxdalv.github.io/tts-generation-webui/
MIT License
1.68k stars 180 forks source link

Question: Can I delete the installer_files folder? #227

Closed bobcate closed 9 months ago

bobcate commented 9 months ago

The title. The one-click installer worked nicely and now I can generate speech. Do I still need the installer files for updates or anything? Because it's taking up 20 gigs of space.

rsxdalv commented 9 months ago

You can delete some of them, maybe about 8gbs - there's information online about which files can be deleted from conda, there's a special command line command for it. The downside is that it will download it the next time you interact with conda. I'm not sure if it breaks anything (I usually reinstall if I mess with installation too much). Let me know if you can find it. As for the name installer_files - it is more about the "files brought by the installer for future usage" rather than "the temporary files used for installation", it would be a breaking change to rename it, but if you were to make a new AI project, another folder name could fit.

On Thu, Dec 7, 2023 at 7:54 PM bobcate @.***> wrote:

The title. The one-click installer worked nicely and now I can generate speech. Do I still need the installer files for updates or anything? Because it's taking up 20 gigs of space.

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI65NZ7RQUQKF4NZEPTYIH7GJAVCNFSM6AAAAABALOVO7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTCMRWGEYTENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bobcate commented 9 months ago

Thank you for the clarification about the folder.

While I have no idea about Conda, I think that 8 gigs is the env folder. I'll put what I found here for future reference:

It says here that Conda creates environments for projects and when a project is complete, it's environment can be deleted. This source briefly explains how to delete an environment.

CMD couldn't find "conda" in my system to be able to use it's commands, so I found a conda.exe in the installer_files directory and tried using that. But conda env list only returns the base env which I believe cannot be deleted with a command.

Since you've warned that I'd have to redownload stuff in the future, I decided not to touch it unless I need that space back.

rsxdalv commented 9 months ago

If I come across it in the near future I'll let you know, but conda has a certain cache that CAN be deleted without making the project inoperable. However, if you delete all of installer_files (or the envs), you will need to redownload to even just run the project. I can't recommend it because I am not 100% sure that the project will function properly after this; but in theory that's a way to save space while you don't use the project.

On Thu, Dec 7, 2023 at 9:37 PM bobcate @.***> wrote:

Closed #227 https://github.com/rsxdalv/tts-generation-webui/issues/227 as completed.

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/227#event-11186105033, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI4AMRTG3DK4DOJD3R3YIILH7AVCNFSM6AAAAABALOVO7KVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGE4DMMJQGUYDGMY . You are receiving this because you commented.Message ID: @.*** com>

rsxdalv commented 9 months ago

Here's one of the commands: https://docs.conda.io/projects/conda/en/latest/commands/clean.html

bobcate commented 9 months ago

I opening cmd in /installer_files/conda/ , and calling _conda clean -a and it returns five lines of There are no xxx to remove.

rsxdalv commented 9 months ago

Got it, I'll try to recreate the exact command I used before.

rsxdalv commented 9 months ago

That's a little strange, I'm seeing 3gb savings when running that command:

(C:\one-click-installers-tts-main\installer_files\env) C:\one-click-installers-tts-main>conda clean --all --dry-run
Will remove 183 (3.11 GB) tarball(s).
Will remove 1 index cache(s).
Will remove 25 (7.8 MB) package(s).
There are no tempfile(s) to remove.
There are no logfile(s) to remove.
bobcate commented 9 months ago

I don't have a conda installed on a system level. So, I'm cd'ing to the conda directory inside the installer folder and using the _conda.exe (with an underscore character in front). Maybe that's it?

rsxdalv commented 9 months ago

Use cmd_windows.bat then just conda without the underscore.

On Fri, Dec 8, 2023, 12:00 PM bobcate @.***> wrote:

I don't have a conda installed on a system level. So, I'm cd'ing to the conda directory inside the installer folder and using the _conda.exe (with an underscore character in front). Maybe that's it?

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/227#issuecomment-1846889783, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI5ZHD5NBAHBK557ASLYILQKZAVCNFSM6AAAAABALOVO7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWHA4DSNZYGM . You are receiving this because you commented.Message ID: @.***>

bobcate commented 9 months ago

That did it, cleaned about 3-4gigs. Thank you!

rsxdalv commented 9 months ago

Awesome, let's see if I can add it to the UI

On Fri, Dec 8, 2023, 3:32 PM bobcate @.***> wrote:

That did it, cleaned about 3-4gigs. Thank you!

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/227#issuecomment-1847172135, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXIYHS5Z7OB255J7OZH3YIMJIHAVCNFSM6AAAAABALOVO7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXGE3TEMJTGU . You are receiving this because you commented.Message ID: @.***>