weecology / deepforestr

Other
10 stars 2 forks source link

Crash while training on Windows #9

Closed ethanwhite closed 5 months ago

ethanwhite commented 1 year ago

To replicate:

library(deepforestr)

model = df_model()
model$use_release()

annotations_file = get_data("testfile_deepforest.csv")

model$config$epochs = 1
model$config["save-snapshot"] = FALSE
model$config$train$csv_file = annotations_file
model$config$train$root_dir = get_data(".")
model$config$train$fast_dev_run = TRUE

model$create_trainer()
model$trainer$fit(model)

In RGui this results in the following:

ethanwhite commented 1 year ago

Looks like this is the same issue as #4 but it presents differently in RGui

ethanwhite commented 10 months ago

I believe this has now been fixed upstream (see #4), but RGui is generally a bit finicky with reticulate so we should spend some time testing and maybe explicitly document any specific requirements for manually setting the reticulate environment in RGui.

ethanwhite commented 5 months ago

We now have Windows testing including training on GH Actions (see #10). Everything is working so closing this, but if anyone runs into this issue on their local system feel free to reopen.