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

Build without GPU support #523

Closed
Zahrun opened this issue Jan 11, 2024 · 3 comments · Fixed by #524
Closed

Build without GPU support #523

Zahrun opened this issue Jan 11, 2024 · 3 comments · Fixed by #524
Labels
enhancement New feature or request

Comments

@Zahrun
Copy link

Zahrun commented Jan 11, 2024

Hi there,

I tried to update obs-backgroundremoval in Nix several months ago in NixOS/nixpkgs#230775, but got stuck by the lack of onnxruntime-gpu in Nix NixOS/nixpkgs#228093.

As far as I understand, in Nix, they do not allow the loading of external dependency during build process apart from other nix packages (which forces USE_SYSTEM_ONNXRUNTIME).

There is an attempt to add onnxruntime-gpu in NixOS/nixpkgs#260745.

It seems that cuda and onnxruntime-gpu are pretty heavy to compile.

As an alternative, would it be possible to build obs-backgroundremoval without GPU support, with only CPU mode available, that would not require tensorrt_provider_factory.h to build?

@spikespaz
Copy link

I am also awaiting this change, looking forward to a simpler build process!

@umireon
Copy link
Member

umireon commented Jan 11, 2024

@Zahrun Can you try #524 ?

@Zahrun
Copy link
Author

Zahrun commented Jan 11, 2024

Wow, thank you for the very fast implementation @umireon. I will try it in some time.

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

Successfully merging a pull request may close this issue.

3 participants