# Concat image datasets with different size and number of channels

**URL:** <https://discuss.pytorch.org/t/concat-image-datasets-with-different-size-and-number-of-channels/36362>\
**Category:** Uncategorized\
**Created:** [February 4, 2019, 3:30pm UTC](https://discuss.pytorch.org/t/concat-image-datasets-with-different-size-and-number-of-channels/36362 "2019-02-04T15:30:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [May 17, 2022, 4:29am UTC](https://discuss.pytorch.org/t/concat-image-datasets-with-different-size-and-number-of-channels/36362/5 "2022-05-17T04:29:40Z")

</div>

`ConcatDataset` will concatenate all passed `Dataset`s keeping their samples and targets.

---

_[View the full topic](https://discuss.pytorch.org/t/concat-image-datasets-with-different-size-and-number-of-channels/36362)._
