Hello,
I am working with Model Builder to automate data classification using Deep Learning. I am currently stuck on how to iterate folders in the input of Train Deep Learning Model. I have one main folder that contains 190 folders with training data. So I would like to iterate these folders in the input of Train Deep Learning Model so that the output has separate folders for each input folder and the output folders are named after the input folders.
The Iterate folders iterator is not available, Iterate workspaces is not working and Iterate files is not working either.
If you could help me, I would be very grateful.
Why is Iterate Workspace not working, you can set it to iterate over folders? Also saying something "is not working" is not very helpful. You need to explain what you have done, what the errors are, expected outputs and often include images if you want people to help you. Anything less is just a shot in the dark.
Hello,
Yes, you are right. In Iterate Workspaces I set the workspace to the main folder, I set the Workspace type to folder and I checked recursive. But I cannot connect it to the Train Deep Learning Model tool as an input. When I try to connect it as an Input to this tool, I only see the options that are in the picture. This is the first part of the problem. If I could do this, the expected outputs would be, as I mentioned, separate folders for each input folder, which would also have the same name as their inputs.
See when you provide an image and a better detailed description, I can make an informed response!
The issue is a common issue, you basically didn't read the help file 😉 You are not the first and won't be the last.
So what is the output of the iterator? A Workspace.
What is the input of the Train deep learning tool? A Folder.
Is a Workspace a Folder...Yes and No! A folder is a type of workspace but in the world of model builder these are different objects and that's why you can't directly connect to the tool.
In this scenario you need to convert the iterator output to a folder object, you can easily do this using the Calculate Value tool which I show below.
The Calculate Value tool is:
Hi,
Try using the multi-folder support for your workflow.
As long as the properties of exported data are same, it should work.