Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/dvclive/dvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ def get_dvc_repo():
try:
return Repo()
except (NotDvcRepoError, SCMError):
logger.warning(
"Can't save experiment without a DVC Repo."
"\nYou can create a DVC Repo by calling `dvc init`."
)
return None


Expand Down
10 changes: 9 additions & 1 deletion src/dvclive/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,17 @@ def _init_dvc(self):
self._dvc_repo.scm, self._baseline_rev
)
mark_dvclive_only_started()
else:
logger.warning(
"Can't save experiment without a DVC Repo."
"\nYou can create a DVC Repo by calling `dvc init`."
)

def _init_studio(self):
self._studio_token = os.getenv(env.STUDIO_TOKEN, None)
if not self._studio_token:
return

if not self._dvc_repo:
logger.warning("`studio` report can't be used without a DVC Repo.")
return
Expand All @@ -137,7 +146,6 @@ def _init_studio(self):
self._studio_url = get_studio_repo_url(
self._dvc_repo.scm.gitpython.repo
)
self._studio_token = os.getenv(env.STUDIO_TOKEN, None)

if self._studio_url and self._studio_token:
if self._inside_dvc_exp:
Expand Down