allenai / satlas-super-resolution

Apache License 2.0
190 stars 24 forks source link

sample_net_g.pth and inference #4

Closed martin416 closed 7 months ago

martin416 commented 8 months ago

Here are your questions :

  1. Where can I download the file experiments/sample_net_g.pth mentioned in the options/infer_example.yml file?
  2. How can I use the files generated by the method described in this normalization guide for Sentinel-2 images to directly perform inference using an existing model? Thank you.
martin416 commented 8 months ago

I don't want to do training; I want to perform inference directly from downloaded Sentinel-2 data in TIFF format using an existing model to see the results. Thank you

piperwolters commented 8 months ago
  1. experiments/sample_net_g.pth is a placeholder. You will need to download weights and replace that with the path to the weights on your local system. There are model weights here. These weights expect {2, 6, 12, 18} Sentinel-2 input images, respectively.
  2. If you have your own Sentinel-2 data and want to use our inference script, you will need to reformat the data as described here.

An example command with our test data is here.