mirror of
https://gitlab.com/lvra/lvra.gitlab.io.git
synced 2024-11-10 02:20:26 +01:00
Merge branch 'feat/trailing_spaces_check' into 'main'
feat: check for trailing spaces in CI See merge request lvra/lvra.gitlab.io!19
This commit is contained in:
commit
1f23058004
9 changed files with 37 additions and 14 deletions
|
@ -6,6 +6,10 @@ test-links:
|
|||
script:
|
||||
- python3 ./test_links.py
|
||||
|
||||
test-trailing-spaces:
|
||||
script:
|
||||
- ./test_trailing_spaces.sh
|
||||
|
||||
test-build:
|
||||
image: registry.gitlab.com/pages/hugo/hugo_extended
|
||||
script:
|
||||
|
|
|
@ -85,5 +85,4 @@ mode = "Stereo"
|
|||
##
|
||||
## only available if mode is "Stereo"
|
||||
projection_mode = "FromEye"
|
||||
|
||||
```
|
||||
|
|
|
@ -19,6 +19,7 @@ Disclaimer: There's probably a better way. I'm not good at Python. Or machine le
|
|||
### Prerequisites:
|
||||
|
||||
Install the following packages using your distro's package manager:
|
||||
|
||||
- Python 3.10
|
||||
- Pip for Python 3.10
|
||||
- Virtualenv for Python 3.10
|
||||
|
@ -30,6 +31,7 @@ Please use 3.10 exactly, not newer or older.
|
|||
In this example, we will create the virtualenv inside `~/.var/venv/`. Feel free to change the location, any folder will work.
|
||||
|
||||
Create virtualenv:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.var/venv/svc/
|
||||
cd ~/.var/venv/svc/
|
||||
|
@ -37,6 +39,7 @@ python3.10 -m venv .
|
|||
```
|
||||
|
||||
Activate virtualenv
|
||||
|
||||
- On fish: `. bin/activate.fish`
|
||||
- On csh: `. bin/activate.csh`
|
||||
- On bash/zsh: `. bin/activate`
|
||||
|
@ -52,20 +55,25 @@ To exit the virtualenv, run `deactivate`.
|
|||
Do these while you have the virtualenv activated.
|
||||
|
||||
Install required tools:
|
||||
|
||||
- `python -m pip install -U pip setuptools wheel`
|
||||
|
||||
PyTorch with CUDA support for NVIDIA GPUs:
|
||||
|
||||
- Please install CUDA 11.8 using your system package manager. Newer versions may not work.
|
||||
- `pip install -U torch torchaudio --index-url https://download.pytorch.org/whl/cu118`
|
||||
|
||||
PyTorch with ROCm support for AMD GPUs:
|
||||
|
||||
- Please install ROCm 5.7.1 via your system package manager. Newer versions may not work.
|
||||
- `pip install -U torch torchaudio --index-url https://download.pytorch.org/whl/rocm5.7`
|
||||
|
||||
PyTorch for CPU only (you can also choose CPU mode with the options above):
|
||||
|
||||
- `pip install -U torch torchaudio --index-url https://download.pytorch.org/whl/cpu`
|
||||
|
||||
Finally, install SVC:
|
||||
|
||||
- `pip install -U so-vits-svc-fork`
|
||||
|
||||
### Launch the GUI
|
||||
|
@ -81,10 +89,10 @@ svcg
|
|||
|
||||
### Models
|
||||
|
||||
Grab a model from HuggingFace (link on top of page). Models that work with this setup are the ones tagged with `
|
||||
so-vits-svc-4.0` or `so-vits-svc-4.1`.
|
||||
Grab a model from HuggingFace (link on top of page). Models that work with this setup are the ones tagged with `so-vits-svc-4.0` or `so-vits-svc-4.1`.
|
||||
|
||||
You will need 2 files for SVC to work:
|
||||
|
||||
- `G_0000.pth` where 0000 is some number. Usually a higher number means better, but only if you're comparing files within the same repository.
|
||||
- `config.json` tells SVC how to use the pth file.
|
||||
|
||||
|
@ -103,6 +111,7 @@ Click `(Re)Start Voice Changer` to do just that. You also need to click this aft
|
|||
This is for ALVR-only right now. TODO the rest.
|
||||
|
||||
Use `qpwgraph` or `helvum` to:
|
||||
|
||||
1. Disconnect `vrserver` from `ALVR-MIC-Sink`.
|
||||
2. Pipe the output of `vrserver` to the input of `Python3.10`.
|
||||
3. Pipe the output of `Python3.10` to the input of `ALVR-MIC-Sink`.
|
||||
|
|
|
@ -66,6 +66,7 @@ The `startvr` script [here](https://gist.github.com/galister/a85135f4a3aca5208ba
|
|||
It can be used with both ALVR and wired headsets.
|
||||
|
||||
What it does:
|
||||
|
||||
- Whitelist drivers for SpaceCal and ALVR so these will never get blocked
|
||||
- Apply bindings spam patch by Plyshka
|
||||
- Setcap the compositor after a SteamVR update
|
||||
|
@ -73,6 +74,7 @@ What it does:
|
|||
- Prevent SteamVR processes from getting stuck and putting SteamVR in an inconsistent state
|
||||
|
||||
Extra steps when using with ALVR:
|
||||
|
||||
- Under `Installation` tab, register the ALVR driver
|
||||
- Under `Settings`, `Steamvr Launcher` section, set `Driver launch action` to `No action`.
|
||||
|
||||
|
|
9
test_trailing_spaces.sh
Executable file
9
test_trailing_spaces.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
TRAILING_SPACES=$(find content -name '*.md' -exec grep -EHn ' +$' {} \;)
|
||||
|
||||
if [[ -n "$TRAILING_SPACES" ]]; then
|
||||
echo "Error: these files have trailing spaces!"
|
||||
echo "$TRAILING_SPACES"
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in a new issue