LoginSignup
1
0

nerfstudioでAttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' エラーの対処法メモ

Posted at

エラー

nerfstudioのDockerfileで環境を作ってからns-process-dataコマンドでcolmapを使おうとしたらエラーが出た

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS

対処法

Pillow 10.0.0以降ではImage.ANTIALIASが削除されているため、9.5.0にダウングレードする

  • Dockerfileに以下の行を追加
RUN pip install Pillow==9.5.0

または

  • ターミナルで以下を実行
pip install --force-reinstall -v "Pillow==9.5.0"

参考記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0