blumenstiel commited on
Commit
d043708
·
1 Parent(s): 34796e0

Fixing inference

Browse files
examples/{HLS.L30.T13REN.2018013T172747.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif → Mexico_HLS.S30.T13REM.2018026T173609.v2.0_cropped.tif} RENAMED
File without changes
examples/{HLS.L30.T13REN.2018029T172738.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif → Mexico_HLS.S30.T13REM.2018106T172859.v2.0_cropped.tif} RENAMED
File without changes
examples/{HLS.L30.T13REN.2018061T172724.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif → Mexico_HLS.S30.T13REM.2018201T172901.v2.0_cropped.tif} RENAMED
File without changes
examples/Mexico_HLS.S30.T13REM.2018266T173029.v2.0_cropped.tif ADDED

Git LFS Details

  • SHA256: f7f8c67c32027cd663f48226a5932c6c8119a55fb6e80a02636dea57f4733963
  • Pointer size: 132 Bytes
  • Size of remote file: 3.01 MB
inference.py CHANGED
@@ -320,9 +320,9 @@ def main(
320
  print(
321
  f"\nTreating {len(data_files)} files as {len(data_files)} time steps from the same location\n"
322
  )
323
- if len(data_files) != 3:
324
  print(
325
- "The original model was trained for 3 time steps (expecting 3 files). \nResults with different numbers of timesteps may vary"
326
  )
327
 
328
  if torch.cuda.is_available():
@@ -472,14 +472,15 @@ if __name__ == "__main__":
472
  "--data_files",
473
  type=str,
474
  nargs="+",
475
- default=["examples/HLS.L30.T13REN.2018013T172747.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
476
- "examples/HLS.L30.T13REN.2018029T172738.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
477
- "examples/HLS.L30.T13REN.2018061T172724.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"
 
478
  ],
479
  help="Path to the data files. Assumes multi-band files.",
480
  )
481
  parser.add_argument(
482
- "--config",
483
  "-c",
484
  type=str,
485
  default="config.json",
@@ -488,7 +489,7 @@ if __name__ == "__main__":
488
  parser.add_argument(
489
  "--checkpoint",
490
  type=str,
491
- default="Prithvi_EO_V2_300M_TL.pt",
492
  help="Path to a checkpoint file to load from.",
493
  )
494
  parser.add_argument(
 
320
  print(
321
  f"\nTreating {len(data_files)} files as {len(data_files)} time steps from the same location\n"
322
  )
323
+ if len(data_files) != 4:
324
  print(
325
+ "The original model was trained for four time steps. \nResults with different numbers of time steps may vary"
326
  )
327
 
328
  if torch.cuda.is_available():
 
472
  "--data_files",
473
  type=str,
474
  nargs="+",
475
+ default=["examples/Mexico_HLS.S30.T13REM.2018026T173609.v2.0_cropped.tif",
476
+ "examples/Mexico_HLS.S30.T13REM.2018106T172859.v2.0_cropped.tif",
477
+ "examples/Mexico_HLS.S30.T13REM.2018201T172901.v2.0_cropped.tif",
478
+ "examples/Mexico_HLS.S30.T13REM.2018266T173029.v2.0_cropped.tif",
479
  ],
480
  help="Path to the data files. Assumes multi-band files.",
481
  )
482
  parser.add_argument(
483
+ "--config_path",
484
  "-c",
485
  type=str,
486
  default="config.json",
 
489
  parser.add_argument(
490
  "--checkpoint",
491
  type=str,
492
+ default="Prithvi_EO_V2_600M_TL.pt",
493
  help="Path to a checkpoint file to load from.",
494
  )
495
  parser.add_argument(