Skip to content

Commit

Permalink
')' is missed in line 32 of test_demo.py
Browse files Browse the repository at this point in the history
')' is accidentally deleted in line 32 of test_demo.py
  • Loading branch information
lidq92 committed Aug 1, 2020
1 parent 3b77285 commit f57d7b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ CUDA_VISIBLE_DEVICES=1 python test_dataset.py --dataset CLIVE --resize --arch re
```bash
CUDA_VISIBLE_DEVICES=0 python test_demo.py --img data/1000.JPG --resize --arch resnext101_32x8d --trained_model_file checkpoints/p1q2.pth
# > The image quality score is 10.430044178601875
CUDA_VISIBLE_DEVICES=1 python test_demo.py --img data/1000.JPG --resize --arch resnext101_32x8d --trained_model_file checkpoints/p1q2plus0.1variant.pth
# > The image quality score is 16.726127839961094
```

### Remark
Expand Down
2 changes: 1 addition & 1 deletion test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def run(args):
y = model(im.unsqueeze(0))
k = checkpoint['k']
b = checkpoint['b']
print('The image quality score is {}'.format(y[-1].item() * k[-1] + b[-1])
print('The image quality score is {}'.format(y[-1].item() * k[-1] + b[-1]))

if __name__ == "__main__":
parser = ArgumentParser(description='Test Demo for LinearityIQA')
Expand Down

0 comments on commit f57d7b5

Please sign in to comment.