Skip to content
Edit on GitHub

Live.get_step()

Returns the current step value.

def get_step() -> int:

Usage

from dvclive import Live

live = Live()

while live.get_step() < 3:
    live.log("metric", 0.9)
    live.next_step()

Description

DVCLive uses step to track the progress of the data logged with Live.log() and/or Live.log_image().

The current step value can be retrieved with Live.get_step().

In order to update the step value, you can use Live.next_step() or Live.set_step().

Content

🐛 Found an issue? Let us know! Or fix it:

Edit on GitHub

Have a question? Join our chat, we will help you:

Discord Chat