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
When I use the train_dataloader parameter of the dict type, I want to customize the worker_init_fn process, but I see that the source code does not support passing this parameter, so how can I implement some initialization work that is important to me in the dataset subprocess?
Currently, MMEngine does not support customizing the worker_init_fn. But we plan to add a new registry: FUNCTIONS, from which collate_fn and worker_init_fn are built. The implementation is very similar to collate_fn. Are you interested to creating a PR to support this feature? We will also help you throughout the process.
What is the feature?
When I use the train_dataloader parameter of the dict type, I want to customize the
worker_init_fn
process, but I see that the source code does not support passing this parameter, so how can I implement some initialization work that is important to me in the dataset subprocess?Expect:
Any other context?
No response
The text was updated successfully, but these errors were encountered: