Skip to content

Question on Using Predict #429

Closed Answered by FogDrip
FogDrip asked this question in Q&A
Feb 13, 2025 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @Joao-L-S-Almeida, thank you so much for your quick response! I was able to fix my problem.

The config I was using is actually in that repo that you're referencing. To fix the first issue, I just had to add this line at the root level of the firescars.yaml:

predict_output_dir: "../../../Prithvi/datasets_temp/hls_burn_scars/hls_burn_scars/predict_test/"

The second issue with my workflow that I had to fix was that, for some reason, in FireScarsNonGeo class inside the fire_scars.py the __getitem__ method was not returning the input filename somewhere during the model inference. Ultimately the prediction variable being passed to write_on_batch_end inside the CustomWriter in cli_tools.py was

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@FogDrip
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FogDrip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants