Skip to content

Commit c22f49b

Browse files
authored
Updated dependencies (#115)
* resnet: new torchvision API * step-by-step installation of conda * r21d: new torchvision API * raft: fix warning caused by new version of PyTorch * vggish: values are quite different from the before * upd conda env: newer pt, av, and ffmpeg, opencv
1 parent b21f330 commit c22f49b

File tree

9 files changed

+296
-142
lines changed

9 files changed

+296
-142
lines changed

conda_env.yml

Lines changed: 235 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,244 @@
11
name: video_features
22
channels:
33
- pytorch
4+
- nvidia
45
- conda-forge
56
- defaults
67
dependencies:
7-
- _libgcc_mutex=0.1=main
8+
- _libgcc_mutex=0.1=conda_forge
9+
- _openmp_mutex=4.5=2_gnu
10+
- alsa-lib=1.2.8=h166bdaf_0
811
- antlr-python-runtime=4.9.3=pyhd8ed1ab_1
9-
- attrs=22.1.0=pyh71513ae_1
10-
- av=8.0.2=py38he20a9df_1
11-
- backports=1.0=py_2
12-
- backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
12+
- aom=3.5.0=h27087fc_0
13+
- attr=2.5.1=h166bdaf_1
14+
- av=10.0.0=py311h84dbf73_3
1315
- blas=1.0=mkl
14-
- bzip2=1.0.8=h516909a_3
15-
- ca-certificates=2022.6.15=ha878542_0
16-
- certifi=2022.6.15=py38h578d9bd_0
17-
- cffi=1.14.6=py38h400218f_0
18-
- cudatoolkit=11.0.221=h6bb024c_0
19-
- ffmpeg=4.3.1=h167e202_0
20-
- freetype=2.10.2=h5ab3b9f_0
21-
- ftfy=6.1.1=pyhd8ed1ab_0
22-
- gettext=0.19.8.1=h5e8e0c9_1
23-
- gmp=6.2.0=he1b5a44_2
24-
- gnutls=3.6.13=h79a8f9a_0
25-
- iniconfig=1.1.1=pyh9f0ad1d_0
26-
- intel-openmp=2020.2=254
27-
- jpeg=9b=h024ee3a_2
28-
- lame=3.100=h14c3975_1001
29-
- lcms2=2.11=h396b838_0
30-
- ld_impl_linux-64=2.33.1=h53a641e_7
31-
- libedit=3.1.20191231=h14c3975_1
32-
- libffi=3.3=he6710b0_2
33-
- libflac=1.3.3=he1b5a44_0
34-
- libgcc-ng=9.1.0=hdf63c60_0
35-
- libgfortran-ng=7.3.0=hdf63c60_0
36-
- libiconv=1.16=h516909a_0
37-
- libllvm10=10.0.1=he513fc3_3
38-
- libogg=1.3.2=h516909a_1002
39-
- libpng=1.6.37=hbc83047_0
40-
- libsndfile=1.0.29=he1b5a44_0
41-
- libstdcxx-ng=9.1.0=hdf63c60_0
42-
- libtiff=4.1.0=h2733197_1
43-
- libuv=1.40.0=h7b6447c_0
44-
- libvorbis=1.3.7=he1b5a44_0
45-
- llvmlite=0.36.0=py38h612dafd_4
46-
- lz4-c=1.9.2=he6710b0_1
47-
- mkl=2020.2=256
48-
- mkl-service=2.3.0=py38he904b0f_0
49-
- mkl_fft=1.2.0=py38h23d657b_0
50-
- mkl_random=1.1.1=py38h0573a6f_0
51-
- ncurses=6.2=he6710b0_1
52-
- nettle=3.4.1=h1bed415_1002
53-
- ninja=1.10.1=py38hfd86e86_0
54-
- numba=0.53.1=py38ha9443f7_0
55-
- numpy=1.19.1=py38hbc911f0_0
56-
- numpy-base=1.19.1=py38hfa32c7d_0
57-
- olefile=0.46=py_0
58-
- omegaconf=2.1.1=py38h578d9bd_1
59-
- openh264=2.1.1=h8b12597_0
60-
- openssl=1.1.1q=h7f8727e_0
61-
- packaging=21.3=pyhd8ed1ab_0
62-
- pillow=7.2.0=py38hb39fc2d_0
63-
- pip=20.2.2=py38_0
64-
- pluggy=1.0.0=py38h578d9bd_3
65-
- py=1.11.0=pyh6c4a22f_0
66-
- pycparser=2.21=pyhd8ed1ab_0
67-
- pyparsing=3.0.9=pyhd8ed1ab_0
68-
- pysoundfile=0.10.3.post1=pyhd3deb0d_0
69-
- pytest=7.1.2=py38h578d9bd_0
70-
- python=3.8.5=h7579374_1
71-
- python_abi=3.8=1_cp38
72-
- pytorch=1.7.1=py3.8_cuda11.0.221_cudnn8.0.5_0
73-
- pyyaml=5.3.1=py38h8df0ef7_1
74-
- readline=8.0=h7b6447c_0
75-
- regex=2022.3.15=py38h7f8727e_0
76-
- resampy=0.2.2=py_0
77-
- scipy=1.5.2=py38h0b6359f_0
78-
- setuptools=49.6.0=py38_0
79-
- six=1.15.0=py_0
80-
- sqlite=3.33.0=h62c20be_0
81-
- tbb=2020.2=hc9558a2_0
82-
- tk=8.6.10=hbc83047_0
16+
- brotli-python=1.0.9=py311h6a678d5_7
17+
- bzip2=1.0.8=h7b6447c_0
18+
- c-ares=1.25.0=hd590300_0
19+
- ca-certificates=2023.12.12=h06a4308_0
20+
- cairo=1.16.0=ha61ee94_1014
21+
- certifi=2023.11.17=pyhd8ed1ab_0
22+
- cffi=1.16.0=py311h5eee18b_0
23+
- charset-normalizer=2.0.4=pyhd3eb1b0_0
24+
- colorama=0.4.6=pyhd8ed1ab_0
25+
- cryptography=41.0.7=py311hdda0065_0
26+
- cuda-cudart=12.1.105=0
27+
- cuda-cupti=12.1.105=0
28+
- cuda-libraries=12.1.0=0
29+
- cuda-nvrtc=12.1.105=0
30+
- cuda-nvtx=12.1.105=0
31+
- cuda-opencl=12.3.101=0
32+
- cuda-runtime=12.1.0=0
33+
- dbus=1.13.6=h5008d03_3
34+
- exceptiongroup=1.2.0=pyhd8ed1ab_2
35+
- expat=2.5.0=hcb278e6_1
36+
- ffmpeg=5.1.2=gpl_h8dda1f0_106
37+
- fftw=3.3.10=nompi_hc118613_108
38+
- filelock=3.13.1=py311h06a4308_0
39+
- font-ttf-dejavu-sans-mono=2.37=hab24e00_0
40+
- font-ttf-inconsolata=3.000=h77eed37_0
41+
- font-ttf-source-code-pro=2.038=h77eed37_0
42+
- font-ttf-ubuntu=0.83=h77eed37_1
43+
- fontconfig=2.14.2=h14ed4e7_0
44+
- fonts-conda-ecosystem=1=0
45+
- fonts-conda-forge=1=0
46+
- freeglut=3.2.2=h9c3ff4c_1
47+
- freetype=2.12.1=h4a9f257_0
48+
- ftfy=6.1.3=pyhd8ed1ab_0
49+
- gettext=0.21.1=h27087fc_0
50+
- giflib=5.2.1=h5eee18b_3
51+
- glib=2.78.3=hfc55251_0
52+
- glib-tools=2.78.3=hfc55251_0
53+
- gmp=6.2.1=h295c915_3
54+
- gmpy2=2.1.2=py311hc9b5ff0_0
55+
- gnutls=3.7.9=hb077bed_0
56+
- graphite2=1.3.13=h58526e2_1001
57+
- gst-plugins-base=1.22.0=h4243ec0_2
58+
- gstreamer=1.22.0=h25f0c4b_2
59+
- gstreamer-orc=0.4.34=hd590300_0
60+
- harfbuzz=6.0.0=h8e241bc_0
61+
- hdf5=1.14.0=nompi_hb72d44e_103
62+
- icu=70.1=h27087fc_0
63+
- idna=3.4=py311h06a4308_0
64+
- iniconfig=2.0.0=pyhd8ed1ab_0
65+
- intel-openmp=2023.1.0=hdb19cb5_46306
66+
- jack=1.9.22=h11f4161_0
67+
- jasper=2.0.33=h0ff4b12_1
68+
- jinja2=3.1.2=py311h06a4308_0
69+
- jpeg=9e=h5eee18b_1
70+
- keyutils=1.6.1=h166bdaf_0
71+
- krb5=1.20.1=h81ceb04_0
72+
- lame=3.100=h7b6447c_0
73+
- lcms2=2.12=h3be6417_0
74+
- ld_impl_linux-64=2.38=h1181459_1
75+
- lerc=3.0=h295c915_0
76+
- libaec=1.1.2=h59595ed_1
77+
- libblas=3.9.0=1_h86c2bf4_netlib
78+
- libcap=2.67=he9d0100_0
79+
- libcblas=3.9.0=5_h92ddd45_netlib
80+
- libclang=15.0.7=default_hb11cfb5_4
81+
- libclang13=15.0.7=default_ha2b6cf4_4
82+
- libcublas=12.1.0.26=0
83+
- libcufft=11.0.2.4=0
84+
- libcufile=1.8.1.2=0
85+
- libcups=2.3.3=h36d4200_3
86+
- libcurand=10.3.4.107=0
87+
- libcurl=8.1.2=h409715c_0
88+
- libcusolver=11.4.4.55=0
89+
- libcusparse=12.0.2.55=0
90+
- libdb=6.2.32=h9c3ff4c_0
91+
- libdeflate=1.17=h5eee18b_1
92+
- libdrm=2.4.114=h166bdaf_0
93+
- libedit=3.1.20191231=he28a2e2_2
94+
- libev=4.33=hd590300_2
95+
- libevent=2.1.10=h28343ad_4
96+
- libexpat=2.5.0=hcb278e6_1
97+
- libffi=3.4.4=h6a678d5_0
98+
- libflac=1.4.3=h59595ed_0
99+
- libgcc-ng=13.2.0=h807b86a_3
100+
- libgcrypt=1.10.3=hd590300_0
101+
- libgfortran-ng=13.2.0=h69a702a_3
102+
- libgfortran5=13.2.0=ha4646dd_3
103+
- libglib=2.78.3=h783c2da_0
104+
- libglu=9.0.0=he1b5a44_1001
105+
- libgomp=13.2.0=h807b86a_3
106+
- libgpg-error=1.47=h71f35ed_0
107+
- libiconv=1.17=hd590300_2
108+
- libidn2=2.3.4=h5eee18b_0
109+
- libjpeg-turbo=2.0.0=h9bf148f_0
110+
- liblapack=3.9.0=5_h92ddd45_netlib
111+
- liblapacke=3.9.0=5_h92ddd45_netlib
112+
- libllvm14=14.0.6=hcd5def8_4
113+
- libllvm15=15.0.7=hadd5161_1
114+
- libnghttp2=1.58.0=h47da74e_0
115+
- libnpp=12.0.2.50=0
116+
- libnsl=2.0.1=hd590300_0
117+
- libnvjitlink=12.1.105=0
118+
- libnvjpeg=12.1.1.14=0
119+
- libogg=1.3.4=h7f98852_1
120+
- libopencv=4.7.0=py311h7a0761e_1
121+
- libopus=1.3.1=h7f98852_1
122+
- libpciaccess=0.17=h166bdaf_0
123+
- libpng=1.6.39=h5eee18b_0
124+
- libpq=15.3=hbcd7760_1
125+
- libprotobuf=3.21.12=hfc55251_2
126+
- libsndfile=1.2.2=hc60ed4a_1
127+
- libsqlite=3.44.2=h2797004_0
128+
- libssh2=1.11.0=h0841786_0
129+
- libstdcxx-ng=13.2.0=h7e041cc_3
130+
- libsystemd0=253=h8c4010b_1
131+
- libtasn1=4.19.0=h5eee18b_0
132+
- libtiff=4.5.1=h6a678d5_0
133+
- libtool=2.4.7=h27087fc_0
134+
- libudev1=253=h0b41bf4_1
135+
- libunistring=0.9.10=h27cfd23_0
136+
- libuuid=2.38.1=h0b41bf4_0
137+
- libva=2.18.0=h0b41bf4_0
138+
- libvorbis=1.3.7=h9c3ff4c_0
139+
- libvpx=1.11.0=h9c3ff4c_3
140+
- libwebp=1.3.2=h11a3e52_0
141+
- libwebp-base=1.3.2=h5eee18b_0
142+
- libxcb=1.13=h7f98852_1004
143+
- libxkbcommon=1.5.0=h79f4944_1
144+
- libxml2=2.10.3=hca2bb57_4
145+
- libzlib=1.2.13=hd590300_5
146+
- llvm-openmp=14.0.6=h9e868ea_0
147+
- llvmlite=0.41.1=py311ha6695c7_0
148+
- lz4-c=1.9.4=h6a678d5_0
149+
- markupsafe=2.1.3=py311h5eee18b_0
150+
- mkl=2023.1.0=h213fc3f_46344
151+
- mkl-service=2.4.0=py311h5eee18b_1
152+
- mkl_fft=1.3.8=py311h5eee18b_0
153+
- mkl_random=1.2.4=py311hdb19cb5_0
154+
- mpc=1.1.0=h10f8cd9_1
155+
- mpfr=4.0.2=hb69a4c5_1
156+
- mpg123=1.32.4=h59595ed_0
157+
- mpmath=1.3.0=py311h06a4308_0
158+
- mysql-common=8.0.33=hf1915f5_6
159+
- mysql-libs=8.0.33=hca2cd23_6
160+
- ncurses=6.4=h6a678d5_0
161+
- nettle=3.9.1=h7ab15ed_0
162+
- networkx=3.1=py311h06a4308_0
163+
- nspr=4.35=h27087fc_0
164+
- nss=3.96=h1d7d5a4_0
165+
- numba=0.58.1=py311h96b013e_0
166+
- numpy=1.26.3=py311h08b1b3b_0
167+
- numpy-base=1.26.3=py311hf175353_0
168+
- omegaconf=2.3.0=pyhd8ed1ab_0
169+
- opencv=4.7.0=py311h38be061_1
170+
- openh264=2.3.1=hcb278e6_2
171+
- openjpeg=2.4.0=h3ad879b_0
172+
- openssl=3.1.4=hd590300_0
173+
- p11-kit=0.24.1=hc5aa10d_0
174+
- packaging=23.2=pyhd8ed1ab_0
175+
- pcre2=10.42=hcad00b1_0
176+
- pillow=10.0.1=py311ha6cbd5a_0
177+
- pip=23.3.1=py311h06a4308_0
178+
- pixman=0.43.0=h59595ed_0
179+
- pluggy=1.3.0=pyhd8ed1ab_0
180+
- pthread-stubs=0.4=h36c2ea0_1001
181+
- pulseaudio=16.1=hcb278e6_3
182+
- pulseaudio-client=16.1=h5195f5e_3
183+
- pulseaudio-daemon=16.1=ha8d29e2_3
184+
- py-opencv=4.7.0=py311h781c19f_1
185+
- pycparser=2.21=pyhd3eb1b0_0
186+
- pyopenssl=23.2.0=py311h06a4308_0
187+
- pysocks=1.7.1=py311h06a4308_0
188+
- pysoundfile=0.12.1=pyhd8ed1ab_0
189+
- pytest=7.4.4=pyhd8ed1ab_0
190+
- python=3.11.6=hab00c5b_0_cpython
191+
- python_abi=3.11=4_cp311
192+
- pytorch=2.1.2=py3.11_cuda12.1_cudnn8.9.2_0
193+
- pytorch-cuda=12.1=ha16c6d3_5
194+
- pytorch-mutex=1.0=cuda
195+
- pyyaml=6.0.1=py311h5eee18b_0
196+
- qt-main=5.15.8=h5d23da1_6
197+
- readline=8.2=h5eee18b_0
198+
- regex=2023.12.25=py311h459d7ec_0
199+
- requests=2.31.0=py311h06a4308_0
200+
- resampy=0.4.2=pyhd8ed1ab_0
201+
- scipy=1.11.4=py311h64a7726_0
202+
- setuptools=68.2.2=py311h06a4308_0
203+
- sqlite=3.41.2=h5eee18b_0
204+
- svt-av1=1.4.1=hcb278e6_0
205+
- sympy=1.12=pypyh9d50eac_103
206+
- tbb=2021.8.0=hdb19cb5_0
207+
- tk=8.6.13=noxft_h4845f30_101
83208
- tomli=2.0.1=pyhd8ed1ab_0
84-
- torchaudio=0.7.2=py38
85-
- torchvision=0.8.2=py38_cu110
86-
- tqdm=4.49.0=py_0
87-
- typing_extensions=4.0.1=pyha770c72_0
88-
- wcwidth=0.2.5=pyh9f0ad1d_2
89-
- wheel=0.35.1=py_0
90-
- x264=1!152.20180806=h14c3975_0
91-
- xz=5.2.5=h7b6447c_0
92-
- yaml=0.2.5=h516909a_0
93-
- zlib=1.2.11=h7b6447c_3
94-
- zstd=1.4.5=h9ceee32_0
95-
- pip:
96-
- opencv-python==4.4.0.44
209+
- torchaudio=2.1.2=py311_cu121
210+
- torchtriton=2.1.0=py311
211+
- torchvision=0.16.2=py311_cu121
212+
- tqdm=4.66.1=pyhd8ed1ab_0
213+
- typing_extensions=4.9.0=py311h06a4308_1
214+
- tzdata=2023d=h04d1e81_0
215+
- urllib3=1.26.18=py311h06a4308_0
216+
- wcwidth=0.2.13=pyhd8ed1ab_0
217+
- wheel=0.41.2=py311h06a4308_0
218+
- x264=1!164.3095=h166bdaf_2
219+
- x265=3.5=h924138e_3
220+
- xcb-util=0.4.0=h516909a_0
221+
- xcb-util-image=0.4.0=h166bdaf_0
222+
- xcb-util-keysyms=0.4.0=h516909a_0
223+
- xcb-util-renderutil=0.3.9=h166bdaf_0
224+
- xcb-util-wm=0.4.1=h516909a_0
225+
- xkeyboard-config=2.38=h0b41bf4_0
226+
- xorg-fixesproto=5.0=h7f98852_1002
227+
- xorg-inputproto=2.3.2=h7f98852_1002
228+
- xorg-kbproto=1.0.7=h7f98852_1002
229+
- xorg-libice=1.1.1=hd590300_0
230+
- xorg-libsm=1.2.4=h7391055_0
231+
- xorg-libx11=1.8.4=h0b41bf4_0
232+
- xorg-libxau=1.0.11=hd590300_0
233+
- xorg-libxdmcp=1.1.3=h7f98852_0
234+
- xorg-libxext=1.3.4=h0b41bf4_2
235+
- xorg-libxfixes=5.0.3=h7f98852_1004
236+
- xorg-libxi=1.7.10=h7f98852_0
237+
- xorg-libxrender=0.9.10=h7f98852_1003
238+
- xorg-renderproto=0.11.1=h7f98852_1002
239+
- xorg-xextproto=7.3.0=h0b41bf4_1003
240+
- xorg-xproto=7.0.31=h7f98852_1007
241+
- xz=5.4.5=h5eee18b_0
242+
- yaml=0.2.5=h7b6447c_0
243+
- zlib=1.2.13=hd590300_5
244+
- zstd=1.5.5=hc292b87_0

docs/meta/install_conda.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Just steps to install conda and create a new environment from scratch.
2+
```bash
3+
conda create -n video_features
4+
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
5+
conda install -c conda-forge omegaconf scipy tqdm pytest opencv
6+
# +CLIP
7+
conda install -c conda-forge ftfy regex
8+
# vggish
9+
conda install -c conda-forge resampy pysoundfile
10+
```

docs/models/i3d.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ Activate the environment
6161
conda activate video_features
6262
```
6363

64-
and extract features from `./sample/v_ZNVhz7ctTq0.mp4` video and show the predicted classes
64+
and extract features from `./sample/v_GGSY1Qvo990.mp4` video and show the predicted classes
6565
```bash
6666
python main.py \
6767
feature_type=i3d \
6868
device="cuda:0" \
69-
video_paths="[./sample/v_ZNVhz7ctTq0.mp4]" \
69+
video_paths="[./sample/v_GGSY1Qvo990.mp4]" \
7070
show_pred=true
7171
```
7272

0 commit comments

Comments
 (0)