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
pl.*.each is a small optimization over pl.*.map which produces an empty iterable, that is, workers don't yield any objects to the output queue. This is why tqdm is not showing any progress.
To track progress you can either use pl.thread.map and use an f without a return (returns None) so that tqdm receives something (this is what I normally do). If you do want to use pl.thread.each, you can create the tqdm object outside f without an iterable (bar = tqdm(total=total, desc="pipeline") and manually update it inside f via bar.update(). This last solution will not work with the pl.process module as it assumes shared memory.
Hi,
I would like to use
pl.thread.each
as my stage is returning nothing but I would like to see some progress:but progress is not working, showing:
pipeline: 0%| | 0/3000 [00:00<?, ?it/s]
With pl.thread.map it is working fine.
The text was updated successfully, but these errors were encountered: