Comments (4)
@ooe1123 昔のPRの整理の後に、こちらを検討いただけると嬉しいです _ _
from ailia-models.
https://github.com/RVC-Boss/GPT-SoVITS/wiki/
from ailia-models.
GPT-SOVITSのV1をONNXに変換した際に書き換えたコードは下記。
RVC-Boss/GPT-SoVITS#835
from ailia-models.
Export speed parameter
〇 GPT_SoVITS\module\models_onnx.py
class TextEncoder(nn.Module):
...
def forward(self, y, text, ge):
...
y = self.encoder2(y * y_mask, y_mask)
↓
class TextEncoder(nn.Module):
...
def forward(self, y, text, ge, speed):
...
y = self.encoder2(y * y_mask, y_mask)
if torch.onnx.is_in_onnx_export():
a = torch.cat([
((y.shape[-1] / speed).long()+1).unsqueeze(0),
y.shape[-1].unsqueeze(0)
], dim=0)
size = a[(speed == torch.tensor(1.0)).long()]
y = F.interpolate(y, size=size, mode="linear")
y_mask = F.interpolate(y_mask, size=y.shape[-1], mode="nearest")
else:
if(speed!=1):
y = F.interpolate(y, size=int(y.shape[-1] / speed)+1, mode="linear")
y_mask = F.interpolate(y_mask, size=y.shape[-1], mode="nearest")
from ailia-models.
Related Issues (20)
- ADD LivePortrait HOT 6
- Use ailia Tokenizer by default HOT 9
- ADD SAM2 (ONNX) HOT 63
- ADD DeepFaceLive
- ADD MobileSAM
- ADD llava-jp
- ADD MobileVLM
- ADD timesfm
- ADD Flux HOT 1
- CyberAgentLM2 llava-calm2-siglip HOT 1
- ADD Deep-Live-Cam HOT 3
- Facefusion: Add ability to list, sort and select face index. HOT 1
- Add ProPainter
- ADD Florence-2 HOT 7
- Segment Anything 2 Video HOT 3
- Model Licenses - could you please add some details HOT 3
- ADD GeoCalib
- ADD RT-DETR
- image_encoder_hiera_t.onnx Not working with web onnx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ailia-models.