Open leochoo opened 4 years ago
以下のリンクの内容によれば、 ByteTensor を用いている部分を BoolTensor に置き換えるとよさそうです。
我也遇到了这种问题,且在pytorch中无法识别.mp4文件
D:\Anaconda\anaconda3\envs\pytorch\lib\site-packages\PIL\Image.py in save(self, fp, format, **params) 2215 format = EXTENSION[ext] 2216 except KeyError as e: -> 2217 raise ValueError(f"unknown file extension: {ext}") from e 2218 2219 if format.upper() not in SAVE:
ValueError: unknown file extension: .mp4
macOSで実行してますが、
を実行すると、以下のようなwarningが出ます。
/Users/distiller/project/conda/conda-bld/pytorch_1573049287641/work/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.