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

fix: remove rlimit hack from 3rd party module #21

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Conversation

tazlin
Copy link
Member

@tazlin tazlin commented Jun 21, 2023

It seems that the 3rd party annotators were relying on setting rlimits to do... something? It is unclear to me why such a potentially disruptive system change was casually invoked. The offending file was hordelib\nodes\comfy_controlnet_preprocessors\uniformer\mmseg\datasets\builder.py.

Long story short, certain hosted environments, such as runpod, forbid adjusting rlimits. This means certain cloud workers are unable to run hordelib.

See also pytorch/pytorch#973 for some background on the solution I adopted here, which strangely enough is reference in the code removed. I don't have the mental bandwidth to parse the purpose of this module, so it remains to be seen if this change will work in practice.

@tazlin tazlin merged commit d873bbe into main Jun 21, 2023
1 check passed
@tazlin tazlin deleted the remove-annotator-hack branch June 21, 2023 16:32
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

Successfully merging this pull request may close these issues.

None yet

1 participant