kontextox commited on
Commit
4a6f18b
·
verified ·
1 Parent(s): ef84bf3

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. ISSUES.md +17 -0
  2. README.md +4 -3
ISSUES.md CHANGED
@@ -78,6 +78,23 @@ Let PyTorch Lightning do its job. Either:
78
  --trainer.default_root_dir uk_UA-ASMR/output
79
  ```
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  <details>
82
  <summary>Usage</summary>
83
 
 
78
  --trainer.default_root_dir uk_UA-ASMR/output
79
  ```
80
 
81
+ ## 4. GuardOnDataDependentSymNode: Could not guard on data-dependent expression
82
+
83
+ The error you are encountering (`GuardOnDataDependentSymNode: Could not guard on data-dependent expression`) is caused by a recent change in PyTorch. In newer versions (like PyTorch 2.6+), `torch.onnx.export` defaults to the new strict TorchDynamo-based exporter. TorchDynamo crashes when it tries to trace data-dependent assertions, such as the assert `(discriminant >= 0).all()` runtime check located at line 174 of Piper's `transforms.py`.
84
+
85
+ 1. Open the file `/workspace/piper1-gpl/src/piper/train/export_onnx.py`
86
+ 2. Locate the `torch.onnx.export(` call around line 92.
87
+ 3. Add `dynamo=False`, to the list of arguments:
88
+
89
+ ```python
90
+ torch.onnx.export(
91
+ ...
92
+ dynamo=False, # <--- ADD THIS LINE
93
+ verbose=False,
94
+ ...
95
+ )
96
+ ```
97
+
98
  <details>
99
  <summary>Usage</summary>
100
 
README.md CHANGED
@@ -49,7 +49,7 @@ python3 setup.py build_ext --inplace
49
 
50
  # CRITICAL FIX for custom text phonemes in Piper `OHF-voice/piper1-gpl` (fixed in `kontextox/piper1-gpl`):
51
  # This patches dataset.py to properly use the custom phoneme map loaded via --data.phonemes_path
52
- sed -i 's/phonemes_to_ids(sentence_phonemes)/phonemes_to_ids(sentence_phonemes, id_map=self.piper_config.phoneme_id_map)/g' src/piper/train/vits/dataset.py
53
  ```
54
 
55
  ```bash
@@ -116,9 +116,10 @@ python3 -m piper.train fit \
116
 
117
  _**Note**: `--trainer.default_root_dir` ensures PyTorch Lightning saves logs and checkpoints cleanly to `uk_UA-ASMR/output/lightning_logs/`_
118
 
119
- _**Note**: The NVIDIA driver on your system is too old (found version 12080): `pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118`_
120
 
121
- _**Note**: NVIDIA GeForce RTX 5090 with CUDA capability `sm_120` is not compatible with the current PyTorch installation: `pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128` for check `python -c "import torch; print(torch.__version__); print(torch.cuda.get_arch_list()); print(torch.randn(1).cuda())"`_
 
122
 
123
  _**Note**: Check CPU process `find uk_UA-ASMR/cache -name "*.pt" | wc -l`_
124
 
 
49
 
50
  # CRITICAL FIX for custom text phonemes in Piper `OHF-voice/piper1-gpl` (fixed in `kontextox/piper1-gpl`):
51
  # This patches dataset.py to properly use the custom phoneme map loaded via --data.phonemes_path
52
+ # sed -i 's/phonemes_to_ids(sentence_phonemes)/phonemes_to_ids(sentence_phonemes, id_map=self.piper_config.phoneme_id_map)/g' src/piper/train/vits/dataset.py
53
  ```
54
 
55
  ```bash
 
116
 
117
  _**Note**: `--trainer.default_root_dir` ensures PyTorch Lightning saves logs and checkpoints cleanly to `uk_UA-ASMR/output/lightning_logs/`_
118
 
119
+ _**Note**: The NVIDIA driver on your system is too old (found version 12080) or NVIDIA GeForce RTX 5090 with CUDA capability `sm_120` is not compatible with the current PyTorch installation:_
120
 
121
+ - Check: `python -c "import torch; print(torch.__version__); print(torch.cuda.get_arch_list()); print(torch.randn(1).cuda())"`
122
+ - Run: `pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128`
123
 
124
  _**Note**: Check CPU process `find uk_UA-ASMR/cache -name "*.pt" | wc -l`_
125