RamAnanth1 commited on
Commit
97f34a9
1 Parent(s): 71b8b82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def process_canny(input_image, prompt, a_prompt, n_prompt, num_samples, image_re
44
  detected_map = apply_canny(img, low_threshold, high_threshold)
45
  detected_map = HWC3(detected_map)
46
 
47
- control = torch.from_numpy(detected_map.copy()).float() / 255.0
48
  control = torch.stack([control for _ in range(num_samples)], dim=0)
49
  control = einops.rearrange(control, 'b h w c -> b c h w').clone()
50
 
 
44
  detected_map = apply_canny(img, low_threshold, high_threshold)
45
  detected_map = HWC3(detected_map)
46
 
47
+ control = torch.from_numpy(detected_map.copy()).float().cuda() / 255.0
48
  control = torch.stack([control for _ in range(num_samples)], dim=0)
49
  control = einops.rearrange(control, 'b h w c -> b c h w').clone()
50