docker-StackGAN icon indicating copy to clipboard operation
docker-StackGAN copied to clipboard

CPU version, Docker is running, but can't train/eval

Open HamedMP opened this issue 8 years ago • 7 comments

The instruction for docker is for running the docker instance. But when you are inside the docker, you can't train/eval.

It's just like cloning the code, downloading all datasets, pre-trained models on your own computer.

OS: macOS

HamedMP avatar Apr 15 '17 19:04 HamedMP

I'm having trouble understanding your question. Are you getting specific errors when trying to run scripts from hanzhanggit/StackGAN w/ CPU only? If so, what errors are you getting specifically?

Best, Brannon

brannondorsey avatar Apr 15 '17 19:04 brannondorsey

Thanks @brannondorsey for asking to clarification.

I will post stack trace later if needed, now a summary of what are the errors:

In either case of running code directly on the computer or using CPU-only docker container, the installation of torch libraries which depends on GPU fails. This results in not having full torch environment and then not being able to run get_embeddings.lua. The rest of the code will fail of course.

I wanted to transform the torch code to CPU only, but I don't have any practical experience in the torch. My guess is that the line requires GPU is:

txt = txt:cuda()

But I don't know what is the CPU counterpart :)

HamedMP avatar Apr 15 '17 20:04 HamedMP

Ugh oh, I'm afraid I might have similar skill limitations.

brannondorsey avatar Apr 15 '17 22:04 brannondorsey

If you post traces I can try and take a look.

brannondorsey avatar Apr 15 '17 22:04 brannondorsey

@HamedMP Were you able to run it successfully without GPU?

RJ722 avatar Jun 16 '17 16:06 RJ722

anyone successful without GPU?

I am getting the following error: module 'cunn' not found:No LuaRocks module found for cunn

apremkumar1989 avatar Aug 22 '17 08:08 apremkumar1989

Not at all, I found a GPU to use it.

Best Regards, Hamed MP http://bit.ly/athehamedmp* MSc student, Data Science | EIT Digital | +33 6 222 6 34 68

On Fri, Jun 16, 2017 at 6:32 PM, Rahul Jha [email protected] wrote:

@HamedMP https://github.com/hamedmp Were you able to run it successfully without GPU?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/brangerbriz/docker-StackGAN/issues/4#issuecomment-309072871, or mute the thread https://github.com/notifications/unsubscribe-auth/ADlMF_27XZomU0SIBZ6wZCcgBsizO-Utks5sEq4egaJpZM4M-bzx .

HamedMP avatar Aug 22 '17 12:08 HamedMP