Coder Social home page Coder Social logo

doc-ru's People

Contributors

adiafora avatar aleksandr-shevchenko avatar alexandrerohin avatar bjori avatar countzero1981 avatar evvc avatar execut avatar garretm avatar ghtropic avatar girgias avatar gotoroho avatar kkvvnn avatar lex111 avatar mmalferov avatar nikic avatar nilgun avatar nunoplopes avatar philip avatar salathe avatar saundefined avatar smalyshev avatar sobak avatar stramunin avatar tony2001 avatar u-mulder avatar vokamut avatar vrana avatar xrezus avatar yakoffka avatar zors1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doc-ru's Issues

c

t

I looked at your change and added a comment. I'll explain this briefly here and also comment on how I see the `docker_run.sh` script. TL;DR: please take a copy of `docker_run.sh` and make any changes you need to it. I consider it just "sample code", ie., it's part of the docs, not code.

I looked at your change and added a comment. I'll explain this briefly here and also comment on how I see the docker_run.sh script. TL;DR: please take a copy of docker_run.sh and make any changes you need to it. I consider it just "sample code", ie., it's part of the docs, not code.

When you pass filenames (such as --network some/path/network.pkl), the filename refers to a location in the running container. To make it a little easier to develop and try things out, docker_run.sh maps the top of the stylegan2-ada-pytorch directory as a /scratch volume in the container. So if you need a file from say $HOME/stylegan2-ada-pytorch/tmp/foo.pkl, and you run docker_run.sh in the $HOME/stylegan2-ada-pytorch directory, you could point to a network for example like this:

docker_run.sh python generate.py --network ./tmp/foo.pkl

or

docker_run.sh python generate.py --network /scratch/tmp/foo.pkl

The former ./tmp/foo.pkl relative path works because we also switch the current working directory to /scratch when running in the container.

The README doesn't really go into these details. This is definitely a part of the repo that I'd expect people to take a copy of and extend or change any way their project needs dictate.

I didn't originally want to add docker_run.sh in the repo at all, as these types of wrapper scripts tend to abstract away important details of their running environment, making things such as file paths and environment variables harder to get right. But OTOH, in the past StyleGAN2 releases, many people didn't even try to run Docker as the LOOONG docker run command line incantation scared them away and had them setup a native CUDA environment instead (and we all know what types of environment debugging problems that causes.). But the benefit of a real native environment sans Docker is that some details such as filenames are just easier to deal with.

Originally posted by @nurpax in NVlabs/stylegan2-ada-pytorch#7 (comment)

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.