* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* train

* whisper_lib for sense voice

* aishell recipe

* sense voice

* docs

* bugfix
This commit is contained in:
zhifu gao 2024-04-02 11:11:23 +08:00 committed by GitHub
parent 48693b45c0
commit edb9656176
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,9 +19,10 @@ def import_submodules(package, recursive=True):
package = importlib.import_module(package) package = importlib.import_module(package)
except Exception as e: except Exception as e:
# 如果想要看到导入错误的具体信息,可以取消注释下面的行 # 如果想要看到导入错误的具体信息,可以取消注释下面的行
# print(f"Failed to import {name}: {e}") # print(f"Failed to import {package}: {e}")
pass pass
results = {} results = {}
if not isinstance(package, str):
for loader, name, is_pkg in pkgutil.walk_packages(package.__path__, package.__name__ + '.'): for loader, name, is_pkg in pkgutil.walk_packages(package.__path__, package.__name__ + '.'):
try: try:
results[name] = importlib.import_module(name) results[name] = importlib.import_module(name)