mikeyEcology / MLWIC2

Classify camera trap images using machine learning with R Shiny Apps
36 stars 17 forks source link

Classify function did not run properly #16

Open Monica972 opened 4 years ago

Monica972 commented 4 years ago

Hi there, I am having trouble running the classify function. I have gotten MLWIC to run, however MLWIC2 is not working. I am getting an error that the classify function did not run properly, however it doesn't give any indication as to why.

Here is my code:

install.packages('devtools') devtools::install_github("mikeyEcology/MLWIC2")

library(MLWIC2)

setup(python_loc = "C:/Users/monic/AppData/Local/Continuum/anaconda3/")

classify(path_prefix = "C:/Users/monic/OneDrive/Documents/CameraTrapEx/images", data_info = "C:/Users/monic/OneDrive/Documents/CameraTrapEx/MLWIC2_helper_files/data_info.csv", model_dir = "C:/Users/monic/OneDrive/Documents/CameraTrapEx/MLWIC2_helper_files", log_dir = "C:/Users/monic/OneDrive/Documents/CameraTrapEx/MLWIC2_helper_files/empty_animal", python_loc = "C:/Users/monic/anaconda3N/bin/", save_predictions = "model_predictions.txt", make_output = TRUE, output_name = "MLWIC2_output.csv", num_cores = parallel::detectCores()-1, os = "Windows" )

This provides the output:

Your data_info file exists: C:/Users/monic/OneDrive/Documents/CameraTrapEx/MLWIC2_helper_files/data_info.csv. Your `path_prefix exists: C:/Users/monic/OneDrive/Documents/CameraTrapEx/images. You are running on a Windows computer. The classify function did not run properly.

Do you have any idea why this is not running? Thanks!