nrupatunga / goturn-pytorch

GOTURN tracking implemented in PyTorch
MIT License
84 stars 13 forks source link

how to train my own dataset #2

Closed yustaub closed 4 years ago

yustaub commented 4 years ago

the imagenet dataset is to big, and I want to train with my own dataset , can this repo support train own dataset?very appreciate for your reply!

nrupatunga commented 4 years ago

In order to train on your dataset:

Dataset Preparation

In order to merge both Imagenet and alov, I have used a custom collate_fn in https://github.com/nrupatunga/goturn-pytorch/blob/cd610dd98ca5856ff3944523aa51a058ea7e3c63/src/goturn/dataloaders/goturndataloader.py#L90

Each of the scripts is individually debuggable, please go through each of them in the above order to understand the functionality.

Training Script

Let me know if you face any issues.

yustaub commented 4 years ago

@nrupatunga thk for your reply, I just find my machine can only support pytorch 1.1 at most( I can not upgrade the driver of the machine),when I use pytorch 1.4 which is in requirements.txt, then cuda can not work, can this repo support pytorch 1.1 ?if it can,where should I change?

nrupatunga commented 4 years ago

Though I haven't tested with PyTorch-1.1, It should work. You just need to install PyTorch 1.1 and try to use it.

You can refer https://pytorch.org/get-started/previous-versions/ for previous versions of PyTorch.

nrupatunga commented 4 years ago

In order to understand the current working of the data loaders, you can use a smaller dataset to understand it, which you can download it here

yustaub commented 4 years ago

@nrupatunga thanks for your quick reply!!.I have install pytorch 1.1 and cuda can work, and I test the repo, it always Please run $source settings.sh from root directory' ,although I have run source settings.sh many times, when I change the pytorch to 1.4 version, it can work but cuda can not support the pytorch1.4.

nrupatunga commented 4 years ago

This might be the case, where you are missing other dependencies. Can you try debugging using pdb.

yustaub commented 4 years ago

ok, thank you very much!!!