ShuangXieIrene / ssds.pytorch

Repository for Single Shot MultiBox Detector and its variants, implemented with pytorch, python3.
MIT License
571 stars 167 forks source link

Conda environment, aka dependecies file #52

Open cardoso-neto opened 5 years ago

cardoso-neto commented 5 years ago

Created an env file which you can use. Just download the yaml from my repo https://github.com/cardoso-neto/ssds.pytorch/blob/5384d8c27de82919eab956655a88834e29ac8c2d/ssds.yaml and run conda env create -f ssds.yaml

This will, however, require one small modification to line 45 of ssds_train.py from:

self.priors = self.priorbox.forward()

to:

self.priors = Variable(self.priorbox.forward())

The error message is quite clear and straightforward, suggesting to cast the torch.Tensor to an autograd.Variable.

After fiddling a bit with different Python/Pytorch versions, this is seemed to work: Python=3.6 Pytorch=0.3.1

Not really an issue. Just wanted to leave this somewhere where it'd be helpful.