mirror of
https://github.com/clearml/clearml
synced 2025-02-12 15:45:25 +00:00
Fix model package was not recursive when packaging a folder
This commit is contained in:
parent
19a24c4b20
commit
99f987aafb
@ -1201,7 +1201,7 @@ class OutputModel(BaseModel):
|
|||||||
raise ValueError('Model update weights package should get either directory path to pack or a list of files')
|
raise ValueError('Model update weights package should get either directory path to pack or a list of files')
|
||||||
|
|
||||||
if not weights_filenames:
|
if not weights_filenames:
|
||||||
weights_filenames = list(map(six.text_type, Path(weights_path).glob('*')))
|
weights_filenames = list(map(six.text_type, Path(weights_path).rglob('*')))
|
||||||
|
|
||||||
# create packed model from all the files
|
# create packed model from all the files
|
||||||
fd, zip_file = mkstemp(prefix='model_package.', suffix='.zip')
|
fd, zip_file = mkstemp(prefix='model_package.', suffix='.zip')
|
||||||
|
Loading…
Reference in New Issue
Block a user