-
Notifications
You must be signed in to change notification settings - Fork 64
Remove mentions of 2.4 in docs and error messages #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,29 +94,40 @@ ffmpeg -f lavfi -i \ | |
|
||
## Installing TorchCodec | ||
|
||
Note: if you're on MacOS, you'll need to [build from source](./CONTRIBUTING.md). | ||
The instructions below assume you're on Linux. | ||
1. Install the latest stable version of PyTorch following the | ||
[official instructions](https://pytorch.org/get-started/locally/). For other | ||
versions, refer to the table below for compatibility between versions of | ||
`torch` and `torchcodec`. | ||
|
||
1. Install the latest stable version of PyTorch following the | ||
[official instructions](https://pytorch.org/get-started/locally/). TorchCodec | ||
requires [PyTorch 2.4](https://pytorch.org/docs/2.4/). | ||
2. Install FFmpeg, if it's not already installed. Linux distributions usually | ||
come with FFmpeg pre-installed. TorchCodec supports all major FFmpeg versions | ||
in [4, 7]. | ||
|
||
2. Install FFmpeg, if it's not already installed. Your Linux distribution probably | ||
comes with FFmpeg pre-installed. TorchCodec supports all major FFmpeg versions | ||
in [4, 7]. | ||
If FFmpeg is not already installed, or you need a more recent version, an | ||
easy way to install it is to use `conda`: | ||
|
||
If FFmpeg is not already installed, or you need a later version, install it with: | ||
```bash | ||
conda install ffmpeg | ||
# or | ||
conda install ffmpeg -c conda-forge | ||
``` | ||
|
||
```bash | ||
conda install ffmpeg | ||
# or | ||
conda install ffmpeg -c conda-forge | ||
``` | ||
3. Install TorchCodec: | ||
3. Install TorchCodec: | ||
|
||
```bash | ||
pip install torchcodec | ||
``` | ||
```bash | ||
pip install torchcodec | ||
``` | ||
|
||
The following table indicates the compatibility between versions of | ||
`torchcodec`, `torch` and Python. | ||
|
||
| `torchcodec` | `torch` | Python | | ||
| ------------------ | ------------------ | ------------------- | | ||
| `main` / `nightly` | `main` / `nightly` | `>=3.9`, `<=3.12` | | ||
| not yet supported | `2.5` | `>=3.9`, `<=3.12` | | ||
| `0.0.3` | `2.4` | `>=3.8`, `<=3.12` | | ||
|
||
<details> | ||
|
||
## Benchmark Results | ||
|
||
|
@@ -134,10 +145,6 @@ encoded with libx264 and yuv420p pixel format. | |
|
||
We are actively working on the following features: | ||
|
||
- [Ship wheels for MacOS](https://github.com/pytorch/torchcodec/issues/111), so | ||
that MacOS users can `pip install torchcodec`. For now this is only supported | ||
on Linux, but MacOS users can [build from source](./CONTRIBUTING.md). | ||
- [GPU decoding](https://github.com/pytorch/torchcodec/pull/58) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drive-by |
||
- [Audio decoding](https://github.com/pytorch/torchcodec/issues/85) | ||
|
||
Let us know if you have any feature requests by [opening an | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,10 +42,13 @@ def load_torchcodec_extension(): | |
+ "\n[end of libtorchcodec loading traceback]." | ||
) | ||
raise RuntimeError( | ||
"""Could not load libtorchcodec. Likely causes: | ||
f"""Could not load libtorchcodec. Likely causes: | ||
1. FFmpeg is not properly installed in your environment. We support | ||
verisons 4, 5, 6 and 7. | ||
2. PyTorch 2.4 is not properly installed in your environment. | ||
versions 4, 5, 6 and 7. | ||
2. The PyTorch version ({torch.__version__}) is not compatible with | ||
this version of TorchCodec. Refer to the version compatibility | ||
table: | ||
https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sadly it's impossible to tell users which version of torchcodec they're using, because the |
||
3. Another runtime dependency; see exceptions below. | ||
The following exceptions were raised as we tried to load libtorchcodec: | ||
""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to have a torchcodec with cuda column here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I understand correctly. The CPU and CUDA version of torchcodec should have the same expected pytorch version?