Closed varunkher23 closed 3 years ago
You have a space in your path.
On 6Apr, 2021, at 3:53 PM, varunkher23 @.***> wrote:
Getting the following error:
run.py: error: unrecognized arguments: - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/images - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/image_labels.csv - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC2_helper_files/model_predictions.txt The classify function did not run properly.
on running:
classify(path_prefix = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/images", # this is the absolute path to the images. data_info = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/image_labels.csv", # this is the location of the csv containing image information. It has Unix linebreaks and no headers. model_dir = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC2_helper_files", python_loc = "C:/Users/varun/anaconda3/envs/r-reticulate", # the location of Python on your computer. save_predictions = "model_predictions.txt", os="Windows",output_location = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/", make_output = TRUE, output_name = "MLWIC2_output.csv", num_cores = 4 )
This is while running the examples file. Any solutions? Thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mikeyEcology/MLWIC2/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW5TEMZLR6S6G53X7BIP6DTHNRENANCNFSM42PMQDAQ.
Oops. This issue is cleared. But a new issue now:
Your data_info
file exists: D:/WII-Thar_LTEO/Camera_trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/image_labels.csv.
Your `path_prefix exists: D:/WII-Thar_LTEO/Camera_trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/images.
You are running on a Windows computer.
Traceback (most recent call last):
File "run.py", line 412, in
The last issue got solved by uninstalling tensorflow v2 and installing tensorflow v1. The code worked on the example file. Trying on personal dataset now. Thanks for your help
Getting the following error:
run.py: error: unrecognized arguments: - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/images - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/image_labels.csv - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC2_helper_files/model_predictions.txt The classify function did not run properly.
on running:
classify(path_prefix = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/images", # this is the absolute path to the images. data_info = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/image_labels.csv", # this is the location of the csv containing image information. It has Unix linebreaks and no headers. model_dir = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC2_helper_files", python_loc = "C:/Users/varun/anaconda3/envs/r-reticulate", # the location of Python on your computer. save_predictions = "model_predictions.txt", os="Windows",output_location = "D:/WII - Thar LTEO/Camera trapping/Auto-recognition/MLWIC2/MLWIC_examples-master/", make_output = TRUE, output_name = "MLWIC2_output.csv", num_cores = 4 )
This is while running the examples file. Any solutions? Thanks.