Hi WittySeal70 , can you point to the documentation of log_file
?
oh, I'm sorry, my bad. It's simply:
def log_file(self, file_name: str, file_path: str):
self.task.upload_artifact(name=file_name, artifact_object=file_path)
Hi everyone,
I'm trying to log a file using the ClearML logger like this:
clearml.log_file(file_name=file_name, file_path=file_path)
For example, if file_name
is "mapped_categories"
and file_path
is "/home/datalake_local/yolo/mapped_categories.json"
, ClearML creates an intermediate subfolder, resulting in the file being stored as:artifacts/mapped_categories/mapped_categories.json
Is there a way to prevent the creation of these subfolders and have the file logged directly under artifacts/
?
Thanks in advance!
Hi WittySeal70 , can you point to the documentation of log_file
?
oh, I'm sorry, my bad. It's simply:
def log_file(self, file_name: str, file_path: str):
self.task.upload_artifact(name=file_name, artifact_object=file_path)