YutaroOgawa / Deep-Reinforcement-Learning-Book

書籍「つくりながら学ぶ!深層強化学習」のサポートリポジトリです
MIT License
336 stars 157 forks source link

5.3 & 5.4にdeprecation warningが出ます。 #7

Open leochoo opened 4 years ago

leochoo commented 4 years ago

macOSで実行してますが、

# main クラス
cartpole_env = Environment()
cartpole_env.run()

を実行すると、以下のような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.

morioka commented 4 years ago

以下のリンクの内容によれば、 ByteTensor を用いている部分を BoolTensor に置き換えるとよさそうです。

https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/62#issuecomment-553761470

demrry commented 1 year ago

我也遇到了这种问题,且在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