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.

Can't reproduce colab getting started example

See original GitHub issue

Instructions To Reproduce the 🐛 Bug:

  1. Tried to run the colab getting started on the detectron2 default GitHub repository, but it’s not reproducing.

  2. What exact command you run: Exact steps being followed on the getting colab getting started

  3. please simplify the steps as much as possible so they do not require additional resources to Default dataset used in the colab getting started

Environment:

Colab is now using Pytorch 1.9 and installation is not working as suggested in the notebook, besides commenting on the assert condition of PyTorch 1.8. version is still producing error while

from detectron2 import _C

ImportError: /usr/local/lib/python3.7/dist-packages/detectron2/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor7is_cudaEv

. @ppwwyyxx any hints or recommendations would be very helpful.

Kind Regards,

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:12

github_iconTop GitHub Comments

3reactions
ppwwyyxxcommented, Jun 24, 2021

The official colab tutorial has now been updated and tested with the workaround to use pytorch1.8.

3reactions
hqmcommented, Jun 23, 2021

This blog post contained instructions that worked for me

https://www.sproutworkshop.com/2021/05/how-to-install-detectron2/

I substituted in these two pip installs in the tutorial colab notebook and removed the assertion check for pytorch 1.8

!pip3 install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html !pip install ‘git+https://github.com/facebookresearch/detectron2.git’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started With Google Colab | by Anne Bonner
If you want, while you're already in your Google Drive you can create a new Colab notebook. Just click “New” and drop the...
Read more >
Troubleshooting Google Colab for the Total Newbie
Working in Google Colab for the first time has been completely awesome and pretty shockingly easy, but it hasn't been without a couple...
Read more >
Google Colab Tutorial for Beginners - YouTube
... know to get started with Google Colab. You don't need any setup to get started with Google Cola. ... Your browser can't...
Read more >
Welcome to Google Colab: Tricks and Tweaks (Part 2) - Medium
So, let us get started with Colab. ... message = 'A Great Tutorial on Colab by Tutorialspoint!' ... Your browser can't play this...
Read more >
Quickstart | Android Management API - Google Developers
To get started with the Android Management API, we've created a Colab notebook that you can follow to enroll an enterprise, create a...
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