update files for package

This commit is contained in:
Jarod Mica 2024-01-21 20:58:25 -08:00
parent 73ad7c0db9
commit 0c1dd2c496
3 changed files with 22 additions and 1 deletions

View file

@ -36,6 +36,19 @@ pip uninstall torch
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
```
## Updating Your Installation
Below are how you can update the package for the latest updates
### Package
### Manual Installation
You should be able to navigate into the folder and then pull the repo to update it.
```
cd ai-voice-cloning
git pull
```
If there are large features added, you may need to delete the venv and the re-run the setup-cuda script to make sure there are no package issues
## Documentation
TBD

View file

@ -1,3 +1,3 @@
#*
*
!.gitignore
!.gitkeep

View file

@ -4,6 +4,14 @@ import argparse
import yaml
import datetime
if os.path.exists("runtime"):
# Get the directory where the script is located
script_dir = os.path.dirname(os.path.abspath(__file__))
# Add this directory to sys.path
if script_dir not in sys.path:
sys.path.insert(0, script_dir)
from torch.distributed.run import main as torchrun
# this is effectively just copy pasted and cleaned up from the __main__ section of training.py