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

Inference ESRGAN with Multiple GPUs #119

Open
maksimay opened this issue Apr 12, 2021 · 0 comments
Open

Inference ESRGAN with Multiple GPUs #119

maksimay opened this issue Apr 12, 2021 · 0 comments

Comments

@maksimay
Copy link

maksimay commented Apr 12, 2021

Is there a way to run / infer ESRGAN using multiple GPUS for faster image processing?

I tried using:

model = arch.RRDBNet(3, 3, 64, 23, gc=32)
model.load_state_dict(torch.load(model_path), strict=True)
model.eval()
model= nn.DataParallel(model,device_ids = [0, 1])
model = model.to(device)

but somehow it only uses one of my Titans when running the test.py instead of both cards...
I also get no errors printed when running this

Any suggestions on this?

Thx in advance

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

No branches or pull requests

1 participant