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

Error when using dataloader_prefetch #961

Closed
a-l-e-x-d-s-9 opened this issue Sep 10, 2024 · 0 comments
Closed

Error when using dataloader_prefetch #961

a-l-e-x-d-s-9 opened this issue Sep 10, 2024 · 0 comments

Comments

@a-l-e-x-d-s-9
Copy link

I enabled: "--dataloader_prefetch": "true",
And got the error:

positional argument but 2 were given
Thread-5 (fetch_responses)Traceback (most recent call last):
  File "/home/alexds9/Documents/stable_diffusion/SimpleTuner/train.py", line 51, in <module>
    trainer.train()
  File "/home/alexds9/Documents/stable_diffusion/SimpleTuner/helpers/training/trainer.py", line 1596, in train
    batch = iterator_fn(step, *iterator_args)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BatchFetcher.next_response() takes 1 positional argument but 2 were given

:
Epoch 1/100 Steps:   0%|                                                                             | 0/600 [00:00<?, ?it/s]Traceback (most recent call last):

Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
  File "/home/alexds9/Documents/stable_diffusion/SimpleTuner/train.py", line 67, in <module>
    bf.stop_fetching()
    ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'stop_fetching'
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/home/alexds9/Documents/stable_diffusion/SimpleTuner/helpers/data_backend/factory.py", line 1320, in fetch_responses
    self.queue.put(random_dataloader_iterator(self.datasets))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: random_dataloader_iterator() missing 1 required positional argument: 'backends'
@bghira bghira closed this as completed in 28cbb34 Sep 10, 2024
bghira pushed a commit that referenced this issue Sep 10, 2024
…ncrementing locally instead of globally
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

1 participant