SoggyKiwi commited on
Commit
3c13f2b
β€’
1 Parent(s): f93986b

i fogor πŸ’€

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def process_image(input_image, learning_rate, iterations, n_targets, seed):
29
 
30
  torch.manual_seed(int(seed))
31
  random_one_logits = torch.zeros(1000)
32
- random_one_logits[torch.randperm(1000)[:n_targets]] = 1
33
  random_one_logits = random_one_logits.to(pixel_values.device)
34
 
35
  for iteration in range(int(iterations)):
 
29
 
30
  torch.manual_seed(int(seed))
31
  random_one_logits = torch.zeros(1000)
32
+ random_one_logits[torch.randperm(1000)[:int(n_targets)]] = 1
33
  random_one_logits = random_one_logits.to(pixel_values.device)
34
 
35
  for iteration in range(int(iterations)):