prepareCalData Erorr

30 views
Skip to first unread message

sebastian yerex

unread,
Aug 16, 2023, 1:43:39 PM8/16/23
to SegOptim user group
Hi, 
I am fairly new to the package and working through the invasive species example. 

everything has gone smoothly up to the calibration data stage. I have tried to keep my code and directories as similar to those in the example as possible. 

when running the prepareCalData function I get the following output and error: 

> calData <- SegOptim::prepareCalData( + rstSegm = segmRst, + trainData = trainDataRst, + rstFeatures = classificationFeatures, + thresh = 0.5, + funs = "mean", + minImgSegm = 30, + verbose = TRUE) -> [1/3] Loading train data into image segments... Error in as_string(x) : Can't convert a call to a string. Error in getTrainData_(x = x, rstSegm = rstSegm, useThresh = useThresh, : An error occurred while calculating training data stats! Warning message: In SegOptim::prepareCalData(rstSegm = segmRst, trainData = trainDataRst, : An error occurred while generating train data! Check segmentation parameter ranges? Perhaps input train data?

 Any help or thoughts would be greatly appreciated. 
Thanks!

Sebastian

João Gonçalves

unread,
Sep 9, 2023, 12:19:12 PM9/9/23
to SegOptim user group
Hi Sebastian,

Thanks for the feedback.
This issue has been solved in the latest release of the package thanks to the contribution of GitHub user arthurdegrandpre. Please reinstall the package using:

remotes::install_github("joaofgoncalves/SegOptim", ref="experimental")

After reinstalling the package the example should be working (I tested it on my computer and it performs well in all steps).


Cheers,
João
Reply all
Reply to author
Forward
0 new messages