ImageClassification input format

Any help using the OOB ImageClassification model. I’ve read the documentation on format and getting error when training.

I constructed my folder structure as indicated in the docs.

<Training / Evaluation Directory>
– images
– Bus
– bus001.jpg
– bus002.jpg
– bus003.jpg
– Truck
– truck001.jpg
– truck012.png
– truck0030.jpeg
– Car

Here is the error message.

Traceback (most recent call last): File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/trainer_run.py”, line 76, in main wrapper.run() File “/microservice/training_wrapper.py”, line 57, in run return self.training_plugin.model_run() File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 146, in model_run raise e File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 138, in model_run self.run_train_only() File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 207, in run_train_only self.train_model(self.local_dataset_directory) File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 111, in train_model self.model.train(directory) File “/microservice/train.py”, line 37, in train self.process_data() File “/microservice/train.py”, line 61, in process_data self.df_train, self.df_test = preprocess.preprocess_data(self.opt) File “”, line 11, in preprocess_data File “”, line 31, in create_df_from_single_folder FileNotFoundError: [Errno 2] No such file or directory: ‘/microservice/dataset/images’ Traceback (most recent call last): File “/usr/local/bin/uipath-core-training”, line 8, in sys.exit(main()) File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/trainer_run.py”, line 82, in main raise e File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/trainer_run.py”, line 76, in main wrapper.run() File “/microservice/training_wrapper.py”, line 57, in run return self.training_plugin.model_run() File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 146, in model_run raise e File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 138, in model_run self.run_train_only() File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 207, in run_train_only self.train_model(self.local_dataset_directory) File “/home/aifabric/.local/lib/python3.8/site-packages/uipath_core/training_plugin.py”, line 111, in train_model self.model.train(directory) File “/microservice/train.py”, line 37, in train self.process_data() File “/microservice/train.py”, line 61, in process_data self.df_train, self.df_test = preprocess.preprocess_data(self.opt) File “”, line 11, in preprocess_data File “”, line 31, in create_df_from_single_folder FileNotFoundError: [Errno 2] No such file or directory: ‘/microservice/dataset/images’ 2021-11-29 14:47:12,048 - uipath_core.trainer_run:main:66 - INFO: Starting training job… 2021-11-29 14:47:13,108 - matplotlib.font_manager:_load_fontmanager:1443 - INFO: generated new fontManager 2021-11-29 14:47:15,217 - uipath_core.storage.azure_storage_client:download:95 - INFO: Dataset from bucket folder training-d927d88b-e5cc-420d-8aeb-8aeaa28616c1/a05f4df7-87f9-46cd-a74d-8a2736fd08ff/18f7fc64-80e4-4f3b-8cac-3b3fab55a3cd with size 55 downloaded successfully 2021-11-29 14:47:15,218 - uipath_core.training_plugin:train_model:109 - INFO: Start model training… 2021-11-29 14:47:15,218 - uipath_core.training_plugin:initialize_model:103 - INFO: Start model initialization… 2021-11-29 14:47:15,219 - uipath_core.training_plugin:initialize_model:106 - INFO: Model initialized successfully 2021-11-29 14:47:15,219 - uipath_core.training_plugin:model_run:145 - ERROR: Training failed for pipeline type: TRAIN_ONLY, error: [Errno 2] No such file or directory: ‘/microservice/dataset/images’ 2021-11-29 14:47:15,221 - uipath_core.trainer_run:main:81 - ERROR: Training Job failed, error: [Errno 2] No… (tr

1 Like

I am facing similar issues.
@Lahiru.Fernando

1 Like

Hi @Duke_Dev @JuveriaSiddiqui

Maybe can both of you share some screenshots on how you configured the following:

Your dataset
Your training pipeline configuration…

I think I can help by looking at these two :slight_smile: