26hzhang / VSLNet

Span-based Localizing Network for Natural Language Video Localization (ACL 2020)
MIT License
100 stars 17 forks source link

image processing in prepare #16

Open aries-young opened 2 years ago

aries-young commented 2 years ago

Hello, I find this normalize operation in your extract_charades.py. But, I print the img array and find that there are so many negative numbers in the img array. Is this normal ?

# normalize image to [0, 1]
        image = (image / 255.0) * 2 - 1