VSainteuf / pytorch-psetae

PyTorch implementation of the model presented in "Satellite Image Time Series Classification with Pixel-Set Encoders and Temporal Self-Attention"
MIT License
179 stars 39 forks source link

Order of channels #2

Closed bkj closed 4 years ago

bkj commented 4 years ago

Hi --

Are you able to give some information about the order of channels in your pre-processed data? I see that you're using 10 of the Sentinel-2 bands, but could you give their names and the order they appear in eg. the S2-2017-T31TFM-PixelSet-TOY dataset?

Thanks!

bkj commented 4 years ago

Also -- the values of the data are uint16's that range from 0 to 11517 -- can you give some information about the scale of these values?

VSainteuf commented 4 years ago

Hi!

Hope this helps!

bkj commented 4 years ago

OK great. Is coding w/ the 10,000 scale a standard preprocessing technique, or is that something specific to this pipeline?

VSainteuf commented 4 years ago

16bit coding is standard as the spectral resolution of S2 is 12bit, and as for the 10,000 scale I think it's also standard. We actually retrieved the L2A sentinel tiles from THEIA, one of the leading French providers of L2A.

bkj commented 4 years ago

@VSainteuf OK thanks for the answers. Might it be possible for you to share the preprocessing code that goes from raw L2A tiles to the data format that your model expects? I think I understand, but I'm interested in applying your methods to a new geographic area, so I want to make sure that I'm understanding the preprocessing.

VSainteuf commented 4 years ago

No worries, ok I'll push the dataset preparation script to the same repo soon. And I'd be curious to hear about your results on a different location!