Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I fix this error IndexError: tuple index out of range #258

Open
xijiee opened this issue Dec 5, 2024 · 3 comments
Open

How do I fix this error IndexError: tuple index out of range #258

xijiee opened this issue Dec 5, 2024 · 3 comments

Comments

@xijiee
Copy link

xijiee commented Dec 5, 2024

Traceback (most recent call last):
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\gradio\queueing.py", line 536, in process_events
response = await route_utils.call_process_api(
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\gradio\blocks.py", line 1935, in process_api
result = await self.call_function(
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\gradio\blocks.py", line 1520, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\anyio_backends_asyncio.py", line 2441, in run_sync_in_worker_thread
return await future
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\anyio_backends_asyncio.py", line 943, in run
result = context.run(func, *args)
File "D:\Fluxgym\fluxgym\fluxgym\python_embeded\lib\site-packages\gradio\utils.py", line 826, in wrapper
response = f(*args, **kwargs)
File "D:\Fluxgym\fluxgym\fluxgym\fluxgym\app.py", line 252, in create_dataset
original_caption = inputs[index + 1]
IndexError: tuple index out of range
concept_sentence=xijie_sbpk
lora_name sbpk, concept_sentence=xijie_sbpk, output_name=sbpk
license_items=['license: other', 'license_name: flux-1-dev-non-commercial-license', 'license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md']
license_str = license: other
license_name: flux-1-dev-non-commercial-license
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
no samples
I made this mistake during training

@mcDandy
Copy link

mcDandy commented Dec 11, 2024

I am getting the same error. Does not appear to affect training.

@AlexFeYang
Copy link

getting the same error, when I put a larger dataset(over maybe 76 images) will 100% get this error,
I meet the same error at ai-toolkit, it will kill the training process at the beginning
I think it is due to the gradio did not upload all the files(I check the dataset folder, it has only 76 while I upload 100 images)

@xijiee
Copy link
Author

xijiee commented Dec 26, 2024

I tried to train with 50 images and it worked, it seems there are too many images
Thank you

getting the same error, when I put a larger dataset(over maybe 76 images) will 100% get this error, I meet the same error at ai-toolkit, it will kill the training process at the beginning I think it is due to the gradio did not upload all the files(I check the dataset folder, it has only 76 while I upload 100 images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants