OpenVehicleReID icon indicating copy to clipboard operation
OpenVehicleReID copied to clipboard

lr_scheduler.py?

Open vounteer opened this issue 3 years ago • 0 comments

I meet a question? /home/eini/anaconda3/lib/python3.6/site-packages/torch/optim/lr_scheduler.py:82: UserWarning: Detected call of lr_scheduler.step() before optimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step(). Failure to do this will result in PyTorch skipping the first value of the learning rate schedule.See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate "https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning) Traceback (most recent call last): File "main.py", line 83, in train(args, configs) File "main.py", line 49, in train trainer.train() File "/home/eini/WZY/open-VehicleReID-master216/trainers/base.py", line 112, in train self.evaluate(epoch, stats) File "/home/eini/WZY/open-VehicleReID-master216/trainers/base.py", line 119, in evaluate mAP, cmc = self.evaluator.evaluate() File "/home/eini/WZY/open-VehicleReID-master216/evaluators/base.py", line 68, in evaluate distmat = self.pairwise_distance(features) File "/home/eini/WZY/open-VehicleReID-master216/evaluators/base.py", line 135, in pairwise_distance dist = re_ranking(x, y, 20, 6, 0.3) File "/home/eini/WZY/open-VehicleReID-master216/utils/re_ranking.py", line 55, in re_ranking initial_rank = np.argsort(original_dist).astype(np.int32) File "/home/eini/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 940, in argsort return _wrapfunc(a, 'argsort', axis=axis, kind=kind, order=order) File "/home/eini/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 52, in _wrapfunc return getattr(obj, method)(*args, **kwds) MemoryError

vounteer avatar Mar 28 '21 06:03 vounteer