SebastianGer / WildfireSpreadTS

MIT License
16 stars 3 forks source link

train.py: error: Configuration check failed #4

Open ry-zakari opened 2 months ago

ry-zakari commented 2 months ago

Hello,

Good work you have done. I am trying to repleacate your results and compare with my model but i am getting some errors: SEE BELOW

this is when i am trying to run : python src/train.py --config=cfgs/unet/res18_monotemporal.yaml --trainer=cfgs/trainer_single_gpu.yaml --data=cfgs/data_monotemporal_full_features.yaml --seed_everything=0 --trainer.max_epochs=200 --do_test=True --data.data_dir D:/Wildfire_Risk/WildfireSpreadTS/Converted

train.py: error: Parser key "model": Problem with given class_path 'models.SMPModel':

SebastianGer commented 1 month ago

Hello!

this is when i am trying to run : python src/train.py --config=cfgs/unet/res18_monotemporal.yaml --trainer=cfgs/trainer_single_gpu.yaml --data=cfgs/data_monotemporal_full_features.yaml --seed_everything=0 --trainer.max_epochs=200 --do_test=True --data.data_dir D:/Wildfire_Risk/WildfireSpreadTS/Converted

train.py: error: Parser key "model": Problem with given class_path 'models.SMPModel': - 'Configuration check failed :: No action for destination key "loss_function" to check its value.'

When I'm running the same thing, I don't get any error. Have you made some modifications to the code? It sounds like you're setting model.loss_function, but the given models.SMPModel does not take that as an argument. What should happen is that SMPModel takes it as an argument and passes it to BaseModel's init function. In SMPModel.py, have you maybe removed the following lines from the init function's arguments?

*args: Any, **kwargs: Any

ry-zakari commented 1 month ago

I have not made any modification. also i did not delete *args: Any, **kwargs: Any