这是因为安装了新版本的Pillow,查看了一下我安装的pillow版本是10.x版本,pip install tf-models-official删除了该getsize 功能,降级到 Pillow 9.5 解决了该问题:
pip unintsall Pillow
pip install Pillow==9.5
再次运行代码,bug解决。
这是因为安装了新版本的Pillow,查看了一下我安装的pillow版本是10.x版本,pip install tf-models-official删除了该getsize 功能,降级到 Pillow 9.5 解决了该问题:
pip unintsall Pillow
pip install Pillow==9.5
再次运行代码,bug解决。