Skip to content

[BUG] MEDIA_METRIC error: cannot schedule new futures after interpreter shutdown #889

@Zeyi-Lin

Description

@Zeyi-Lin

🐛 Bug description [Please make everyone to understand it]

执行下面的代码时,会产生报错,前端显示为创建了图表,但是没有数据。

import numpy as np
import swanlab

run = swanlab.init()

# 1. 创建一个numpy array
random_image = np.random.randint(low=0, high=256, size=(100, 100, 3), dtype=np.uint8)
# 2. 传入swanlab.Image
image = swanlab.Image(random_image, caption="random image")

run.log({"examples": image})
Image
swanlab: MEDIA_METRIC error: cannot schedule new futures after interpreter shutdown, it might be a swanlab bug, data will be lost!

另外

如果在尾部增加run.finish(),就会正常结束。

🚑 Any additional [like screenshots]

  • SwanLab Version: v0.5.2

  • Platform: MacOS

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions