-
Add the image to the corresponding folder.
. ├── data │ ├── 000001 │ │ ├── 32 │ │ │ ├── 000001-32.600.2.tif │ │ │ ├── 000001-32.600.2.tif.dvc │ │ │ └── YOUR_GOLD_IMAGE.tif │ │ └── 52 │ └── README.md └── README.md
Make sure you follow the conventions.
-
Add the new file to
dvc
dvc add --glob data/**/*.tif
That should create a new file (dvc pointer):
data/000001/32/YOUR_GOLD_IMAGE.tif.dvc
The content should be something like this:
outs: - md5: a6e3d9ac974e40a44621121962c22505 size: 4830960 path: 000001-32.600.2.tif
-
Push the new file to the DVC remote storage
export AZURE_STORAGE_ACCOUNT='...' export AZURE_STORAGE_KEY='...' dvc push
-
Add the new changes to git.
You should have two new files in your repo:
new file: data/000001/32/.gitignore new file: data/000001/32/000001-32.600.2.tif.dvc
You can commit and push those new files.
https://dvc.org/doc/user-guide/how-to/update-tracked-data#replacing-files
-
Remove current file:
dvc remove data/000001/32/000001-32.600.2.tif.dvc
-
Copy new version and add it to dvc:
dvc add data/000001/32/000001-32.600.2.tif
You have to change something on the image. Otherwise,
dvc
will not create the new .dvc file. -
Commit changes with git
You should always create a pull request for a single Gold Image when you want to add or update them.
-
Create a new issue
The name of the new issue should follow base issue naming conventions in addition to the ones described here.
- Title:
New Gold Image: 000001-32.600.2.tif
orUpdate Gold Image: 000001-32.600.2.tif
- Description: whatever you consider important. For example, why you are updating the image.
- Title:
-
Create a new branch
The branch name should also follow base branch naming conventions in addition to the ones described here.
Add a Gold Image:
git checkout -b issue-XX-add-gold-image-000001-32.600.2.tif
Update a Gold Image:
git checkout -b issue-XX-update-gold-image-image-000001-32.600.2.tif
-
Add or update the image using
dvc
.Follow the steps in "Adding-a-gold-image" or "Updatting-a-gold-image" sections.
-
Commit your changes to the remote branch
Commit format,
Add a Gold Image:
git commit -m "[#XX]" Add Gold Image: 000001-32.600.2.tif"
Update a Gold Image:
git commit -m "[#XX]" Update Gold Image: 000001-32.600.2.tif"
-
Create the pull request