mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix support for upload LazyEvalWrapper artifacts
This commit is contained in:
parent
f25dcde2c1
commit
efd786a061
@ -24,6 +24,7 @@ from ..backend_interface.metrics.events import UploadEvent
|
|||||||
from ..debugging.log import LoggerRoot
|
from ..debugging.log import LoggerRoot
|
||||||
from ..storage.helper import remote_driver_schemes
|
from ..storage.helper import remote_driver_schemes
|
||||||
from ..storage.util import sha256sum, format_size, get_common_path
|
from ..storage.util import sha256sum, format_size, get_common_path
|
||||||
|
from ..utilities.proxy_object import LazyEvalWrapper
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
@ -321,6 +322,11 @@ class Artifacts(object):
|
|||||||
if preview:
|
if preview:
|
||||||
preview = str(preview)
|
preview = str(preview)
|
||||||
|
|
||||||
|
# evaluate lazy proxy object
|
||||||
|
if isinstance(artifact_object, LazyEvalWrapper):
|
||||||
|
# noinspection PyProtectedMember
|
||||||
|
artifact_object = LazyEvalWrapper._load_object(artifact_object)
|
||||||
|
|
||||||
pathlib_types = (Path, pathlib_Path,) if pathlib_Path is not None else (Path,)
|
pathlib_types = (Path, pathlib_Path,) if pathlib_Path is not None else (Path,)
|
||||||
|
|
||||||
# try to convert string Path object (it might reference a file/folder)
|
# try to convert string Path object (it might reference a file/folder)
|
||||||
|
Loading…
Reference in New Issue
Block a user