Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils/misc.py里面的deep_update方法感觉有问题 #1622

Closed
r00mz opened this issue Apr 17, 2024 · 1 comment
Closed

utils/misc.py里面的deep_update方法感觉有问题 #1622

r00mz opened this issue Apr 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@r00mz
Copy link

r00mz commented Apr 17, 2024

Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

如果传入的参数是一个空的字典,那么递归的时候这个参数不会生效。

例如参考/runtime/python/websocket/funasr_wss_server.py
segments_result = model_vad.generate(input=audio_in, **websocket.status_dict_vad)[0]["value"]

设置websocket.status_dict_vad = {'cache': {}, "is_final": False}
cache并不会成功设置成{}

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd '....'
  2. See error

Code sample

Expected behavior

Environment

  • OS (e.g., Linux):
  • FunASR Version (e.g., 1.0.9):
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32)
  • CUDA/cuDNN version (e.g., cuda11.7):
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
  • Any other relevant information:

Additional context

@r00mz r00mz added the bug Something isn't working label Apr 17, 2024
@LauraGPT LauraGPT self-assigned this Apr 17, 2024
@LauraGPT
Copy link
Collaborator

Bugfix: e8f80e9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants