question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It is not running on GPU in google colab :/

See original GitHub issue

Hi, awesome repo. Thanks for sharing. It throws this error every time I try to run this on GPU.

Traceback (most recent call last): File "/usr/local/bin/style_transfer", line 33, in <module> sys.exit(load_entry_point('style-transfer-pytorch', 'console_scripts', 'style_transfer')()) File "/content/style-transfer-pytorch/style_transfer/cli.py", line 213, in main props = torch.cuda.get_device_properties(device) File "/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py", line 296, in get_device_properties _lazy_init() # will define _get_device_properties File "/usr/local/lib/python3.6/dist-packages/torch/cuda/__init__.py", line 172, in _lazy_init torch._C._cuda_init() RuntimeError: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver.

So I’m forced to run it on the CPU instead and which takes forever. 😪 Can you make it compatible with the old drivers? 😅

I made this [colab] notebook. You can reproduce the error yourself.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
crowsonkbcommented, Jan 29, 2021

Can we use multiple style images at once? (with making a collage of style images)

You can use multiple style images (just list the additional ones after the first one) and it will create a blended style from them and apply it to the content. You can also use the style weights parameter (-sw) to specify the ratios of the style images: for instance, if you have three style images, -sw 1 2 1 will use them in a 1:2:1 ratio.

1reaction
crowsonkbcommented, Jan 29, 2021

Can you tell me which parameters are the best for an 1920x1080 image? Like which pooling type and content and style wt. values?

The values of the parameters are supposed to be independent of what size the output image is. But sometimes when producing large images I set the minimum scale (-ms) to 256 or thereabouts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Colab GPU not working - Part 1 (2020)
It takes hours. And a message show up saying that we are connected to GPU runtime yet not using GPU.
Read more >
Can't use GPU on Google Colab for tensorflow 2.0
Navigate to Edit→Notebook Settings · select GPU from the Hardware Accelerator drop-dow.
Read more >
Google Colab - Using Free GPU - Tutorialspoint
Google provides the use of free GPU for your Colab notebooks. Enabling GPU. To enable GPU in your notebook, select the following menu...
Read more >
TensorFlow with GPU - Colaboratory - Google Colab
Navigate to Edit→Notebook Settings; select GPU from the Hardware Accelerator drop-down. Next, we'll confirm that we can connect to the GPU with tensorflow:....
Read more >
Google Colab
Colab offers optional accelerated compute environments, including GPU and TPU. Executing code in a GPU or TPU runtime does not automatically mean that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found