You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, congratulations on this amazing repository; it's a great codebase for study.
I'm attempting to run the Oxford Flowers demo but am encountering an error. I'm not sure if it's just me or if the demo is currently non-functional (perhaps due to some changes on Hugging Face's end, or something else I'm unaware of):
images = [transform(image.convert(mode)) forimagein examples[image_key]]
AttributeError: 'dict' object has no attribute 'convert'
Here's the full traceback:
Traceback (most recent call last):
File "/notebooks/k-diffusion/train.py", line 525, in<module>main()
File "/notebooks/k-diffusion/train.py", line 435, in main
forbatchin tqdm(train_dl, smoothing=0.1, disable=not accelerator.is_main_process):
File "/usr/local/lib/python3.9/dist-packages/tqdm/std.py", line 1195, in __iter__
forobjin iterable:
File "/usr/local/lib/python3.9/dist-packages/accelerate/data_loader.py", line 451, in __iter__
current_batch = next(dataloader_iter)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py", line 630, in __next__
data = self._next_data()
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py", line 1345, in _next_data
return self._process_data(data)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py", line 1371, in _process_data
data.reraise()
File "/usr/local/lib/python3.9/dist-packages/torch/_utils.py", line 694, in reraise
raise exception
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] foridxin possibly_batched_index]
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 51, in<listcomp>
data = [self.dataset[idx] foridxin possibly_batched_index]
File "/usr/local/lib/python3.9/dist-packages/datasets/arrow_dataset.py", line 2165, in __getitem__
return self._getitem(
File "/usr/local/lib/python3.9/dist-packages/datasets/arrow_dataset.py", line 2150, in _getitem
formatted_output = format_table(
File "/usr/local/lib/python3.9/dist-packages/datasets/formatting/formatting.py", line 532, in format_table
return formatter(pa_table, query_type=query_type)
File "/usr/local/lib/python3.9/dist-packages/datasets/formatting/formatting.py", line 281, in __call__
return self.format_row(pa_table)
File "/usr/local/lib/python3.9/dist-packages/datasets/formatting/formatting.py", line 387, in format_row
formatted_batch = self.format_batch(pa_table)
File "/usr/local/lib/python3.9/dist-packages/datasets/formatting/formatting.py", line 418, in format_batch
return self.transform(batch)
File "/notebooks/k-diffusion/k_diffusion/utils.py", line 39, in hf_datasets_augs_helper
images = [transform(image.convert(mode)) forimagein examples[image_key]]
File "/notebooks/k-diffusion/k_diffusion/utils.py", line 39, in<listcomp>
images = [transform(image.convert(mode)) forimagein examples[image_key]]
AttributeError: 'dict' object has no attribute 'convert'
The text was updated successfully, but these errors were encountered:
Hi,
First, congratulations on this amazing repository; it's a great codebase for study.
I'm attempting to run the Oxford Flowers demo but am encountering an error. I'm not sure if it's just me or if the demo is currently non-functional (perhaps due to some changes on Hugging Face's end, or something else I'm unaware of):
Here's the full traceback:
The text was updated successfully, but these errors were encountered: