I followed the README.
fourcastnet) jupyter@instance-20250216-164054:~/FourCastNet/NCEP$ python inference.py 2023080400 -w model/ -i input_2023080400.npy -o output/ -l 336
model/weights.tar
Traceback (most recent call last):
File "/home/jupyter/FourCastNet/NCEP/inference.py", line 265, in <module>
fcn.run()
~~~~~~~^^
File "/home/jupyter/FourCastNet/NCEP/inference.py", line 196, in run
model = self.load_model(path)
File "/home/jupyter/FourCastNet/NCEP/inference.py", line 158, in load_model
checkpoint = torch.load(checkpoint_file, map_location=device)
File "/opt/conda/envs/fourcastnet/lib/python3.13/site-packages/torch/serialization.py", line 1462, in load
return _load(
opened_zipfile,
...<3 lines>...
**pickle_load_args,
)
File "/opt/conda/envs/fourcastnet/lib/python3.13/site-packages/torch/serialization.py", line 1964, in _load
result = unpickler.load()
File "/opt/conda/envs/fourcastnet/lib/python3.13/site-packages/torch/_weights_only_unpickler.py", line 512, in load
self.append(self.persistent_load(pid))
~~~~~~~~~~~~~~~~~~~~^^^^^
File "/opt/conda/envs/fourcastnet/lib/python3.13/site-packages/torch/serialization.py", line 1928, in persistent_load
typed_storage = load_tensor(
dtype, nbytes, key, _maybe_decode_ascii(location)
)
File "/opt/conda/envs/fourcastnet/lib/python3.13/site-packages/torch/serialization.py", line 1900, in load_tensor
wrap_storage=restore_location(storage, location),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fourcastnet/lib/python3.13/site-packages/torch/serialization.py", line 1811, in restore_location
result = map_location(storage, location)
TypeError: 'int' object is not callable
This is a blocker right now.
I followed the README.
unzip -lit seems it's not corrupted but who knows.This is a blocker right now.