def __init__(self, model,criterion,criterion2,factor1,factor2):
super(BaseTrainer, self).__init__()
self.model = model
self.criterion = criterion#Triplet loss
self.criterion2 = criterion2#softmax loss
self.factor1 = factor1
self.factor2 = factor2
But expection error come out:
TypeError: init() takes exactly 3 arguments (6 given)
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <function _remove at 0x7ff757f877d0> ignored
Then I find that the file of path below is not modified ,when i run my file.The 'trainers.py' of that path has no changed.
open-reid/build/bdist.linux-x86_64/egg/reid/trainers.py(14)init()
I want to modify the file'/examples/triplet loss' and add some parameters into the trainer. I have modified the file 'reid/trainers'
class BaseTrainer(object):
But expection error come out: TypeError: init() takes exactly 3 arguments (6 given) Exception AttributeError: "'NoneType' object has no attribute 'path'" in <function _remove at 0x7ff757f877d0> ignored
Then I find that the file of path below is not modified ,when i run my file.The 'trainers.py' of that path has no changed. open-reid/build/bdist.linux-x86_64/egg/reid/trainers.py(14)init()