# How to merge two datasets

**URL:** <https://discuss.roboflow.com/t/how-to-merge-two-datasets/394>\
**Category:** 🤝  Community Help\
**Created:** [May 6, 2022, 1:30am UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394 "2022-05-06T01:30:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russ76](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/russ76/32/227_2.png) [@Russ76](https://discuss.roboflow.com/u/Russ76)\
**Post date:** [May 6, 2022, 1:30am UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/1 "2022-05-06T01:30:17Z")

</div>

I would like to merge my own object detection dataset with a public one that has many more annotated images in the same class. Is this possible? How is it done?  
I am using the Oak-D camera (Rgb mode) and a Raspberry Pi with Raspian.

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [May 6, 2022, 3:15am UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/2 "2022-05-06T03:15:33Z")

</div>

Hi,

Here is how to merge datasets: [Merging Projects or Datasets - Roboflow](https://help.roboflow.com/en_US/guides/merging-projects-or-datasets)

Additionally, you may want to use [Modify Classes](https://help.roboflow.com/en_US/guides/modifying-classes) to remap/relabel classes if they don’t have the _same_ name.

Example: “car” class in your project, and “Car” class in the public project? Use Modify Classes after merging the datasets to change both classes to “car” or both classes to “Car.”

---

<div class="post-metadata">

**Author:** ![Russ76](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/russ76/32/227_2.png) [@Russ76](https://discuss.roboflow.com/u/Russ76)\
**Post date:** [May 6, 2022, 7:20pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/3 "2022-05-06T19:20:54Z")

</div>

How do we copy a public dataset into our workspace?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [May 6, 2022, 7:59pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/4 "2022-05-06T19:59:52Z")

</div>

Select the dataset version of the project in question. From there, [export it in COCO JSON format](https://help.roboflow.com/en_US/get-started/exporting-your-dataset), unzip the folder and upload to your project.

---

<div class="post-metadata">

**Author:** ![Russ76](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/russ76/32/227_2.png) [@Russ76](https://discuss.roboflow.com/u/Russ76)\
**Post date:** [May 9, 2022, 7:59pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/5 "2022-05-09T19:59:27Z")

</div>

I followed your instructions but it only downloads one image, not 4203 images!

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [May 9, 2022, 8:17pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/6 "2022-05-09T20:17:54Z")

</div>

Which dataset are you referring to? Can you send me a link so I can take a look?

And which version of the dataset did you download?

---

<div class="post-metadata">

**Author:** ![Russ76](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/russ76/32/227_2.png) [@Russ76](https://discuss.roboflow.com/u/Russ76)\
**Post date:** [May 9, 2022, 8:51pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/7 "2022-05-09T20:51:09Z")

</div>

It’s the public “weeds” dataset, under agriculture. I think I figured out, the untrained version has 4203 images, the trained version has ONE. haha

I got them downloaded, but can’t upload here because of firewall. I’ll have to wait until I’m at another location.

---

<div class="post-metadata">

**Author:** ![Andrey-blaze](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/andrey-blaze/32/1606_2.png) [@Andrey-blaze](https://discuss.roboflow.com/u/Andrey-blaze)\
**Post date:** [April 11, 2023, 9:45am UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/8 "2023-04-11T09:45:09Z")

</div>

Good day Mohamed, Please it is possible to colllaborate projects from different individuals after creatiung a dataset?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [April 12, 2023, 11:59pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/9 "2023-04-12T23:59:31Z")

</div>

Hi @Andrey-blaze - if the aim is to work on the _same_ project with teammates, that only requires inviting them to the workspace with the associated project(s): [Adding Team Members to a workspace - Roboflow](https://docs.roboflow.com/roboflow-workspaces/adding-team-members-to-a-workspace)

To merge projects in a workspace: [Merge Projects/Datasets - Roboflow](https://docs.roboflow.com/merge-datasets)

To duplicate projects in a workspace: [Duplicating Projects or Datasets - Roboflow](https://help.roboflow.com/duplicating-projects-or-datasets)

Cloning Images: [Dataset Upload: Cloning Images from Roboflow Universe - Roboflow](https://help.roboflow.com/dataset-upload-cloning-images-from-roboflow-universe) |

- this feature is currently available for any public datasets (public projects in Community/Public workspaces) — images from public projects on [Roboflow Universe](https://universe.roboflow.com) can be cloned to any project in a workspace (both public or private) that you are in.
- there are pre-filled citations available on the Overview/main page for Universe datasets, for you to leverage if you clone a project

---

<div class="post-metadata">

**Author:** ![Navid\_Mashoofi](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/navid_mashoofi/32/1782_2.png) [@Navid\_Mashoofi](https://discuss.roboflow.com/u/Navid_Mashoofi)\
**Post date:** [April 20, 2023, 7:24pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/11 "2023-04-20T19:24:29Z")

</div>

Have a good time, Mr. Mohammad. I want to clone 1000 images from two dataset that exists in Univers and has 8000 images, and have each member of the team annotate 4 different classes in each image. Please guide me. Thank you

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [April 20, 2023, 9:00pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/12 "2023-04-20T21:00:37Z")

</div>

Hi @Navid_Mashoofi - we have a guide here for Cloning Images:

> **[Dataset Upload: Cloning Images from Roboflow Universe](https://help.roboflow.com/dataset-upload-cloning-images-from-roboflow-universe)**
>
> Cloning Images to Your Project A common issue we run into for computer vision projects, is finding data to augment our existing dataset ... or getting a da

If you select the box on the Dataset page to reveal 200 images per page, then you can click “Select All” afterward on each page until you’ve selected 1,000 images.

From there, go ahead and clone the images.

You can invite your teammates, and Assign them labelling jobs: [https://docs.roboflow.com/annotate/collaborative-workflow](https://docs.roboflow.com/annotate/collaborative-workflow)

- [https://docs.roboflow.com/roboflow-workspaces/adding-team-members-to-a-workspace](https://docs.roboflow.com/roboflow-workspaces/adding-team-members-to-a-workspace)

There is an option to add labelling instructions in written format for each labelling job. The formatting is Markdown, meaning you can add example images of how you want things labelled, too.

![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/c17a83a268f1fc167303c7270bb11cc21af159de.png)

![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/d/d6eb5f1a8aa881a9fec49f01375988bc953fac6f.png)

---

<div class="post-metadata">

**Author:** ![TimmyJordan](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@TimmyJordan](https://discuss.roboflow.com/u/TimmyJordan)\
**Post date:** [April 21, 2023, 1:24pm UTC](https://discuss.roboflow.com/t/how-to-merge-two-datasets/394/13 "2023-04-21T13:24:34Z")

</div>

> [@Russ76](#):
>
> I would like to merge my own object detection dataset with a public one that has many more annotated images in the same class. Is this possible? How is it done?  
> I am using the Oak-D camera (Rgb mode) and a Raspberry Pi with Raspian.

Yes, it is possible to merge your own object detection dataset with a public one that has more annotated images in the same class. The process of merging the two datasets involves combining the images and annotations from both datasets into a single dataset.

Here are the steps to merge two object detection datasets:

1. Format the datasets: Make sure both datasets are in the same format. There are several formats for object detection datasets, such as COCO, Pascal VOC, and YOLO, among others. You should format your dataset to match the format of the public dataset you want to merge with.
2. Check the labels: Make sure that the labels in your dataset match the labels in the public dataset. If the labels are different, you will need to re-label your dataset to match the public dataset.
3. Combine the datasets: Combine the images and annotations from both datasets into a single dataset. You can do this by copying the images and annotations from one dataset into the other, or by creating a new dataset that includes both sets of images and annotations.
4. Balance the dataset: If the public dataset has significantly more annotated images than your dataset, it may be necessary to balance the dataset by randomly selecting a subset of the images from the public dataset.
5. Train the model: Once the datasets are merged, you can use the combined dataset to train your object detection model.
