Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d9a0bb6b
authored
Dec 18, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]内存优化
1 parent
793dfeba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
funasr_service.py
kafka_service/funasr_consumer.py
funasr_service.py
View file @
d9a0bb6
...
...
@@ -67,7 +67,7 @@ else:
model_revision
=
'v2.0.4'
,
vad_model_revision
=
'v2.0.4'
,
punc_model_revision
=
'v2.0.4'
,
ncpu
=
8
,
ncpu
=
4
,
ngpu
=
0
,
device
=
"cpu"
,
batch_size
=
1
,
...
...
kafka_service/funasr_consumer.py
View file @
d9a0bb6
...
...
@@ -87,6 +87,7 @@ def consume_kafka():
# q = m.JoinableQueue()
# # 加载大内存变量
# larg_mem = np.random.normal(1.0, 0.1, 10000000)
# 使用`psutil`库或内置的`sys.getsizeof()`函数实时监控内存使用情况,及时发现异常。
for
message
in
consumer_new
:
if
message
is
None
:
continue
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment