Algorithm icon

dataset_cwfid


Stars Website GitHub
Discord community

Load Crop/Weed Field Image Dataset (CWFID) for semantic segmentation. This algorithm converts the CWFID dataset into Ikomia dataset format. Then, any semantic segmentation training algorithms from the Ikomia HUB can be connected to this converter.

In Ikomia Studio, once dataset is loaded, all images can be visualized with their respective annotations.

The CWFID dataset comprises field images, vegetation segmentation masks and crop/weed plant type annotations.

Image example

🚀 Use with Ikomia API

1. Install Ikomia API

We strongly recommend using a virtual environment. If you're not sure where to start, we offer a tutorial here.

pip install ikomia

2. Create your workflow

from ikomia.dataprocess.workflow import Workflow

# Init your workflow
wf = Workflow()

# Add dataset loader:auto_connect is set to False because dataset algorithms don't have any input
dataset_loader = wf.add_task(name="dataset_cwfid", auto_connect=False)

dataset_loader.set_parameters({
    "image_folder": "cwfid_dataset_folder/images"
})

# Add semantic segmentation training algorithm (pick one from Ikomia HUB)
train_algo = wf.add_task(name="train_detectron2_deeplabv3plus", auto_connect=True)

# Run the training workflow
wf.run()

☀️ Use with Ikomia Studio

Ikomia Studio offers a friendly UI with the same features as the API.

  • If you haven't started using Ikomia Studio yet, download and install it from this page.

  • For additional guidance on getting started with Ikomia Studio, check out this blog post.

📝 Set algorithm parameters

dataset_loader.set_parameters({
    "image_folder": "cwfid_dataset_folder/images"
})
  • image_folder (str): Path to the folder containing dataset images.

Note: parameter key and value should be in string format when added to the dictionary.