Skip to content

Commit

Permalink
should be using 1 - probs for score
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jan 19, 2023
1 parent 00fcc9f commit db96595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion phenaki_pytorch/phenaki_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ def sample(
noise = noise_K * (uniform(scores.shape, device) - 0.5) * noise_multiplier
scores = scores + noise
else:
scores = logits.gather(2, rearrange(pred_video_ids, '... -> ... 1'))
probs = logits.softmax(dim = -1)
scores = probs.gather(2, rearrange(pred_video_ids, '... -> ... 1'))
scores = 1 - rearrange(scores, '... 1 -> ...')
scores = torch.where(mask, scores, -1e4)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'phenaki-pytorch',
packages = find_packages(exclude=[]),
version = '0.0.70',
version = '0.0.71',
license='MIT',
description = 'Phenaki - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit db96595

Please sign in to comment.