Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dvc diff includes folders #3358

Closed
DavidGOrtega opened this issue Feb 18, 2020 · 7 comments
Closed

dvc diff includes folders #3358

DavidGOrtega opened this issue Feb 18, 2020 · 7 comments
Labels
awaiting response we are waiting for your reply, please respond! :)

Comments

@DavidGOrtega
Copy link

DavidGOrtega commented Feb 18, 2020

Not sure if this works as intended.

output

{"added": [], "deleted": [{"path": "models/checkpoint"}, {"path": "models/mnist.data-00000-of-00001"}, {"path": "models/mnist.index"}, {"path": "models/mnist.meta"}], "modified": [{"path": "metrics/confusion_matrix.json"}, {"path": "metrics/eval.json"}, {"path": "metrics/history.json"}, {"path": "metrics/train.json"}, {"path": "models/"}]}

Please provide information about your setup
DVC version(i.e. dvc --version), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))

Ubuntu 18.04
dvc 0.84.0
Python 3.6.9

@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label Feb 18, 2020
@efiop
Copy link
Contributor

efiop commented Feb 18, 2020

@DavidGOrtega Could you elaborate please?

@efiop efiop added the awaiting response we are waiting for your reply, please respond! :) label Feb 18, 2020
@triage-new-issues triage-new-issues bot removed the triage Needs to be triaged label Feb 18, 2020
@DavidGOrtega
Copy link
Author

@efiop indeed I can!

in my output {"path": "models/"} is a folder

@efiop
Copy link
Contributor

efiop commented Feb 18, 2020

@DavidGOrtega Did you dvc add models as a whole dir?

@DavidGOrtega
Copy link
Author

yes

dvc run --no-exec \
    -f train.dvc \
    -d code/train.py \
    -d data \
    -o models \
    -M metrics/train.json \
    -M metrics/history.json \
    python code/train.py

dvc run --no-exec \
    -f eval.dvc \
    -d code/eval.py \
    -d data \
    -d models \
    -M metrics/eval.json \
    -M metrics/confusion_matrix.json \
    python code/eval.py

@efiop
Copy link
Contributor

efiop commented Feb 19, 2020

@DavidGOrtega Then it is expected. models is tracked as a whole and it was modified as a whole, which is reflected in the diff. Does it cause any issues for you? Or maybe you've expected to see something else?

@DavidGOrtega
Copy link
Author

Not sure if this works as intended.

Ok! I just wanted to be sure. Despite that sounds to me a little bit redundant since we are showing files inside that folder.

@efiop
Copy link
Contributor

efiop commented Feb 19, 2020

@DavidGOrtega Ok, so leaving as is for now. Thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :)
Projects
None yet
Development

No branches or pull requests

2 participants