Error: C:\Users\Dell\AI\pythonProject\.venv\Scripts\python.exe…
- User
Error: C:\Users\Dell\AI\pythonProject.venv\Scripts\python.exe C:\Users\Dell\AI\pythonProject!EridAI\VLM\main.py Downloading readme: 100%|██████████| 50.3k/50.3k [00:00<00:00, 443kB/s] Downloading data: 100%|██████████| 438M/438M [00:55<00:00, 7.94MB/s] Generating train split: 100%|██████████| 2434/2434 [00:00<00:00, 4442.11 examples/s] 2024-10-06 17:11:02.043847: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable
TF_ENABLE_ONEDNN_OPTS=0. 2024-10-06 17:11:02.718711: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variableTF_ENABLE_ONEDNN_OPTS=0. C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\huggingface_hub\file_download.py:157: UserWarning:huggingface_hubcache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\Dell.cache\huggingface\hub\models--openai--clip-vit-base-patch32. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting theHF_HUB_DISABLE_SYMLINKS_WARNINGenvironment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations. To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to see activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development warnings.warn(message) Map: 0%| | 0/2434 [00:00<?, ? examples/s] Traceback (most recent call last): File "C:\Users\Dell\AI\pythonProject!EridAI\VLM\main.py", line 92, in main() File "C:\Users\Dell\AI\pythonProject!EridAI\VLM\main.py", line 48, in main processed_dataset = dataset.map(lambda x: preprocess_data(x, processor, tokenizer), remove_columns=dataset.column_names) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\datasets\arrow_dataset.py", line 602, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\datasets\arrow_dataset.py", line 567, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\datasets\arrow_dataset.py", line 3161, in map for rank, done, content in Dataset._map_single(**dataset_kwargs): File "C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\datasets\arrow_dataset.py", line 3522, in _map_single example = apply_function_on_filtered_inputs(example, i, offset=offset) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\datasets\arrow_dataset.py", line 3421, in apply_function_on_filtered_inputs processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject!EridAI\VLM\main.py", line 48, in processed_dataset = dataset.map(lambda x: preprocess_data(x, processor, tokenizer), remove_columns=dataset.column_names) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject!EridAI\VLM\main.py", line 28, in preprocess_data image = Image.open(images[0]).convert('RGB') ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell\AI\pythonProject.venv\Lib\site-packages\PIL\Image.py", line 3286, in open prefix = fp.read(16) ^^^^^^^ AttributeError: 'PngImageFile' object has no attribute 'read' - Assistant