# Train siamese network for customize dataset (Python3, pytorch)

**URL:** <https://discuss.pytorch.org/t/train-siamese-network-for-customize-dataset-python3-pytorch/12535>\
**Category:** vision\
**Created:** [January 19, 2018, 9:48am UTC](https://discuss.pytorch.org/t/train-siamese-network-for-customize-dataset-python3-pytorch/12535 "2018-01-19T09:48:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMIT\_KASANA](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/a/ecd19e/32.png) [@AMIT\_KASANA](https://discuss.pytorch.org/u/AMIT_KASANA)\
**Post date:** [January 19, 2018, 9:48am UTC](https://discuss.pytorch.org/t/train-siamese-network-for-customize-dataset-python3-pytorch/12535/1 "2018-01-19T09:48:05Z")

</div>

Hlo there, I’m new to python / pytorch. I have image like:

\_folder1/m1\_1.jpg folder2/m1\_4.jpg \_  
_folder1/m1\_2.jpg folder2/m1\_5.jpg_  
_folder1/m1\_3.jpg folder2/m1\_6.jpg_  
_._  
\_ \_  
_folder1/m2\_1.jpg folder2/m2\_4.jpg_  
_folder1/m2\_2.jpg folder2/m2\_5.jpg_  
_folder1/m2\_3.jpg folder2/m2\_6.jpg_  
_._  
_._  
_folder1/m10\_1.jpg folder2/m10\_4.jpg_  
_folder1/m10\_2.jpg folder2/m10\_5.jpg_  
_folder1/m10\_3.jpg folder2/m10\_6.jpg_

[I’m tring to modify this code.](https://github.com/harveyslash/Facial-Similarity-with-Siamese-Networks-in-Pytorch/blob/master/Siamese-networks-medium.ipynb). To train my system, but I don’t have any idea. Plz help me.

thnks.
