ZhengyuLiang24 / LFT

PyTorch Implementation of "Light Field Image Super-Resolution with Transformers"
MIT License
86 stars 14 forks source link

Fixed the problem of command breakage during execution #6

Closed PINTO0309 closed 2 years ago

PINTO0309 commented 2 years ago

The single space after "\" will break up the shell and cause it to fail to execute.

$ python test.py --model_name LFT --angRes 5 --scale_factor 4 \ #<--- Here, half-space
--use_pre_pth True --path_pre_pth './pth/LFT_5x5_4x_epoch_50_model.pth'

$ python test.py --model_name LFT --angRes 5 --scale_factor 2 \ #<--- Here, half-space
--use_pre_pth True --path_pre_pth './pth/LFT_5x5_2x_epoch_50_model.pth'

If we copy the command from the README and execute it as is, the command will be broken in the middle as shown below, so we need to remove the trailing half-width space.

$ python test.py --model_name LFT --angRes 5 --scale_factor 4 \

$ python test.py --model_name LFT --angRes 5 --scale_factor 2 \