"git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "594962844729353842207b9e3c50f8b2434484f9"
Commit 94d890d8 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Add warning to test utils script

parent 6e5c619c
......@@ -100,5 +100,11 @@ def fetch_alphafold_module_weights(weight_path):
module_name = spl[-1]
prefix = "/".join(spl[:-1]) + "/"
_remove_key_prefix(params, prefix)
params = alphafold.model.utils.flat_params_to_haiku(params)
try:
params = alphafold.model.utils.flat_params_to_haiku(params)
except:
raise ImportError(
"Make sure to call import_alphafold before running this function"
)
return params
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment