Failed to import transformers.models.clip.image_processing_clip because of the following error (look up to see its traceback): module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at
如图所示,推测原因可能是numpy版本太低了。
当前版本1.24.4
改到1.20.1好了:
但是出现新的错误了。。吐血