NVlabs / imaginaire

NVIDIA's Deep Imagination Team's PyTorch Library
Other
4k stars 448 forks source link

Installation with docker but where is imaginaire_root? #157

Open 9B8DY6 opened 2 years ago

9B8DY6 commented 2 years ago

image image

After building image and start_local_docker, I can not find out imaginaire_root dir. Where is it?

andrearama commented 2 years ago

Found the solution ?

GabrielZZZ commented 2 years ago

drag your local imaginative folder into the terminal, and copy the path, in the workspace use cd THE-PATH-YOU-COPIED to enter the root imaginaire folder

Manjuphoenix commented 1 year ago

@GabrielZZZ Can you explain more about dragging the local imaginative folder (Does it mean cloning the repository again into the container and running the test_training script) ? Or does it involve mounting the host machine imaginaire folder to the container file system?

Robotuks commented 1 year ago

It really depends where you cloned your Imaginaire. In my case, that directory was not binded as it was in another volume and unreachable. I added a line to bind directory in start_local_docker.sh:

-v /<PATH_TO_IMAGINAIRE>/imaginaire:/<PATH_TO_IMAGINAIRE>/imaginaire \

So final command looked like this:

docker run \
    --gpus all \
    --shm-size 32g \
    --ipc=host \
    -it \
    -v /mnt:/mnt \
    -v ~/:/home \
    -v /<PATH_TO_IMAGINAIRE>/imaginaire:/<PATH_TO_IMAGINAIRE>/imaginaire \
    nvcr.io/nvidian/lpr-imagine/imaginaire:${1}-py3 \
    /bin/bash