Skip to content

Commit

Permalink
delete bytes utf-8 (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin authored Jun 10, 2024
1 parent 76846ac commit cabf0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swanlab/data/callback_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def on_metric_create(self, metric_info: MetricInfo):
path = os.path.join(self.settings.media_dir, metric_info.key)
os.makedirs(path, exist_ok=True)
# 写入数据
with open(os.path.join(path, metric_info.metric["data"][i]), "wb", encoding="utf-8") as f:
with open(os.path.join(path, metric_info.metric["data"][i]), "wb") as f:
f.write(r.getvalue())

def on_stop(self, error: str = None):
Expand Down

0 comments on commit cabf0b6

Please sign in to comment.