facebookresearch / facebookresearch/ImageBind

import data error in Google Colab

Open
#27 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.1k
Forks
842
PR merge metrics
No merged PRs in 30d

Description

When I try to run the demo in Google Colab, I got the error:

import data

---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
1 import torch
----> 2 import data
3 from models import imagebind_model
4 from models.imagebind_model import ModalityType

5 frames
[/content/ImageBind/data.py](https://localhost:8080/#) in
17 from pytorchvideo import transforms as pv_transforms
18 from pytorchvideo.data.clip_sampling import ConstantClipsPerVideoSampler
---> 19 from pytorchvideo.data.encoded_video import EncodedVideo
20
21 from torchvision import transforms

[/usr/local/lib/python3.8/site-packages/pytorchvideo/data/__init__.py](https://localhost:8080/#) in
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2
----> 3 from .ava import Ava # noqa
4 from .charades import Charades # noqa
5 from .clip_sampling import ( # noqa; noqa

[/usr/local/lib/python3.8/site-packages/pytorchvideo/data/ava.py](https://localhost:8080/#) in
10 from iopath.common.file_io import g_pathmgr
11 from pytorchvideo.data.clip_sampling import ClipInfo, ClipSampler
---> 12 from pytorchvideo.data.labeled_video_dataset import LabeledVideoDataset
13
14

[/usr/local/lib/python3.8/site-packages/pytorchvideo/data/labeled_video_dataset.py](https://localhost:8080/#) in
12
13 from .labeled_video_paths import LabeledVideoPaths
---> 14 from .utils import MultiProcessSampler
15
16

[/usr/local/lib/python3.8/site-packages/pytorchvideo/data/utils.py](https://localhost:8080/#) in
14 from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
15
---> 16 import av
17 import numpy as np
18 import torch

[/usr/local/lib/python3.8/site-packages/av/__init__.py](https://localhost:8080/#) in
18 # MUST import the core before anything else in order to initalize the underlying
19 # library that is being wrapped.
---> 20 from av._core import time_base, library_versions
21
22 # Capture logging (by importing it).

ModuleNotFoundError: No module named 'av._core'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

----------------------------------------------------
I try to: !pip install av
But the problem has not been resolved.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.