Skip to content

Commit afe58f4

Browse files
committed
update req
1 parent f16415b commit afe58f4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ dependencies = [
3838
"torchaudio",
3939
"modelscope==1.10.0",
4040
"sentencepiece",
41-
"transformers",
41+
"transformers>=4.43",
42+
"fast_langdetect",
4243
"PyYAML",
4344
"psutil",
4445
"jieba_fast",

tools/webui/uvr5/bs_roformer/attend.py

-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
import torch
22
import torch.nn.functional as F
3-
from einops import rearrange, reduce
43
from packaging import version
54
from torch import einsum, nn
65

7-
# constants
8-
9-
FlashAttentionConfig = namedtuple("FlashAttentionConfig", ["enable_flash", "enable_math", "enable_mem_efficient"])
10-
11-
# helpers
12-
136

147
def exists(val):
158
return val is not None

0 commit comments

Comments
 (0)