FourCastNet icon indicating copy to clipboard operation
FourCastNet copied to clipboard

about inference

Open NIKI1924 opened this issue 1 year ago • 2 comments

I have a question about inference. Is there a part for generating prediction files? I couldn't find it. What I got were some performance metrics of the predictions.I mean, the various meteorological data of the predictions.

NIKI1924 avatar Jul 12 '24 15:07 NIKI1924

When running inference using the script provided in the README:

python inference/inference.py
--config=afno_backbone
--run_num=0
--weights '/path/to/weights/backbone.ckpt'
--override_dir '/path/to/output/scratch/directory/ '

If you add "--vis"

python inference/inference.py
--config=afno_backbone
--run_num=0
--weights 'required/weights/backbone.ckpt'
--override_dir 'required/override/'
--vis

It will output a h5 file of the predictions to wherever your inference_out.log is being outputted.

MatthewBeddows avatar Oct 10 '24 16:10 MatthewBeddows

This fixes te outcome for a single (the first) initial condition. Is there a way to print to file all of the ics?

Or should I simply comment out lines 354 and 355 https://github.com/NVlabs/FourCastNet/blob/master/inference/inference.py#L354-L355

and maybe also uncomment lines 422 and 423 https://github.com/NVlabs/FourCastNet/blob/master/inference/inference.py#L422-L423

???

luiservela avatar Oct 30 '24 06:10 luiservela