Skip to content

dvc add for remote repository (model registry) - GTO #9215

@fortminors

Description

@fortminors

Hello! It would be quite useful if it was possible to track new artifacts through dvc remotely.

What I mean is the following situation:

  1. I have set up a model registry as in here with DVC + GTO
  2. Let's say I have the following structure of artifacts and I am working inside this repository:
    $ gto show:
╒═══════════════════════╤══════════╤═════════╕
│ name                  │ latest   │ #prod   │
╞═══════════════════════╪══════════╪═════════╡
│ detection             │ v0.0.1   │ v0.0.1  │
│ segmentation          │ v0.0.2   │ v0.0.2  │
│ classification        │ v0.0.1   │ v0.0.1  │
╘═══════════════════════╧══════════╧═════════╛
  1. Now I want to completely change my working directory and work from another place on my PC: cd path/to/other/dir (or even on another machine)
  2. I would like to be able to push new artifacts to the model registry that I have created before from the current working directory

Most of the methods in GTO have the optional flag: -r <text>, --repo <text> - Local or remote repository [default: .], which is quite handy.

It would be super useful to make a similar flag for DVC methods (at least for add).

Right now to accomplish this task, I have to do the following:

  1. Clone the model registry repository to a temporary location
  2. Copy my newly created artifact, say new_model_det.pt, to the cloned repository
  3. Track via regular dvc add, gto annotate, dvc push and git push

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionrequires active participation to reach a conclusionproduct: VSCodeIntegration with VSCode extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions