Skip to content

Fix image predict to respect gpus setting#392

Open
uveictor wants to merge 1 commit intodrivendataorg:masterfrom
uveictor:fix-predict-gpus-376
Open

Fix image predict to respect gpus setting#392
uveictor wants to merge 1 commit intodrivendataorg:masterfrom
uveictor:fix-predict-gpus-376

Conversation

@uveictor
Copy link
Copy Markdown

Fixes #376

This PR updates the image prediction pipeline to respect the gpus
configuration by explicitly selecting the inference device and moving
the model and input tensors accordingly, with safe CPU fallback when
CUDA is unavailable.

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.

gpus on ImagePredictConfig doesn't do anything

1 participant