We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5547872 + 563ea3f commit ef567b0Copy full SHA for ef567b0
modules/deepbooru.py
@@ -58,7 +58,7 @@ def tag_multi(self, pil_image, force_disable_ranks=False):
58
a = np.expand_dims(np.array(pic, dtype=np.float32), 0) / 255
59
60
with torch.no_grad(), devices.autocast():
61
- x = torch.from_numpy(a).cuda()
+ x = torch.from_numpy(a).to(devices.device)
62
y = self.model(x)[0].detach().cpu().numpy()
63
64
probability_dict = {}
0 commit comments