Giter Site home page Giter Site logo

Comments (6)

paolodi avatar paolodi commented on August 24, 2024

A current workaround for this is to manually signal the output folder to tf.sh via the -m flag. For example, if the desired output folder is /data/models/output,
./scripts/tf.sh -m /data/output /home/user/ml/ml4cvd/recipes.py --mode train --output_folder /data/models/output

./scripts/tf.sh -m /data/models/output /home/user/ml/ml4cvd/recipes.py \
                --mode train \
                --output_folder /data/models/output

would mount /data/models/output as a shared volume in Docker and the results will be accessible after the run.

I agree that realizing that the results are gone only after the run is complete is a bit annoying. I'll see if we can at least release a warning when the user is running the risk of this happening. Also, saving output results outside the repo is a good practice, as it makes startup time faster, so we should encourage it by making it easier.

from ml4h.

erikr avatar erikr commented on August 24, 2024

Thanks for the workaround, I will try to use that for now!

from ml4h.

erikr avatar erikr commented on August 24, 2024

Paolo, in your example above, did you mean to suggest mounting the same directory as the user specifies for --output_folder, e.g.:

./scripts/tf.sh -m /data/models/output /home/user/ml/ml4cvd/recipes.py \
    --mode train \
    --output_folder /data/models/output

rather than:

./scripts/tf.sh -m /data/output /home/user/ml/ml4cvd/recipes.py \
    --mode train \
    --output_folder /data/models/output

I did the former and it worked!

from ml4h.

paolodi avatar paolodi commented on August 24, 2024

You're absolutely right, Erik, sorry for the typo!

from ml4h.

erikr avatar erikr commented on August 24, 2024

Ok thanks -- I know it seems like a silly question but I know so little about Docker I wanted to be sure!

from ml4h.

erikr avatar erikr commented on August 24, 2024

@paolodi I am not sure exactly what changed, but I no longer have to use -m flag to mount drives outside of the repo. Can this issue be closed?

from ml4h.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.