mirror of
https://github.com/KaiyangZhou/deep-person-reid.git
synced 2025-06-03 14:53:23 +08:00
rm blank space
This commit is contained in:
parent
240a831ba9
commit
d1dbde7cb3
@ -96,10 +96,4 @@ class VideoDataset(Dataset):
|
|||||||
imgs.append(img)
|
imgs.append(img)
|
||||||
imgs = torch.cat(imgs, dim=0)
|
imgs = torch.cat(imgs, dim=0)
|
||||||
|
|
||||||
return imgs, pid, camid
|
return imgs, pid, camid
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -182,10 +182,4 @@ class MuDeep(nn.Module):
|
|||||||
elif self.loss == {'cent'}:
|
elif self.loss == {'cent'}:
|
||||||
return y, x
|
return y, x
|
||||||
else:
|
else:
|
||||||
raise KeyError("Unsupported loss: {}".format(self.loss))
|
raise KeyError("Unsupported loss: {}".format(self.loss))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -85,5 +85,4 @@ class ResNet50M(nn.Module):
|
|||||||
elif self.loss == {'cent'}:
|
elif self.loss == {'cent'}:
|
||||||
return prelogits, combofeat
|
return prelogits, combofeat
|
||||||
else:
|
else:
|
||||||
raise KeyError("Unsupported loss: {}".format(self.loss))
|
raise KeyError("Unsupported loss: {}".format(self.loss))
|
||||||
|
|
@ -262,11 +262,4 @@ def test(model, queryloader, galleryloader, use_gpu, ranks=[1, 5, 10, 20]):
|
|||||||
return cmc[0]
|
return cmc[0]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -248,11 +248,4 @@ def test(model, queryloader, galleryloader, use_gpu, ranks=[1, 5, 10, 20]):
|
|||||||
return cmc[0]
|
return cmc[0]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -264,11 +264,4 @@ def test(model, queryloader, galleryloader, use_gpu, ranks=[1, 5, 10, 20]):
|
|||||||
return cmc[0]
|
return cmc[0]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -266,11 +266,4 @@ def test(model, queryloader, galleryloader, pool, use_gpu, ranks=[1, 5, 10, 20])
|
|||||||
return cmc[0]
|
return cmc[0]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -282,11 +282,4 @@ def test(model, queryloader, galleryloader, pool, use_gpu, ranks=[1, 5, 10, 20])
|
|||||||
return cmc[0]
|
return cmc[0]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -40,4 +40,4 @@ class Random2DTranslation(object):
|
|||||||
return croped_img
|
return croped_img
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
pass
|
pass
|
10
utils.py
10
utils.py
@ -87,12 +87,4 @@ def read_json(fpath):
|
|||||||
def write_json(obj, fpath):
|
def write_json(obj, fpath):
|
||||||
mkdir_if_missing(osp.dirname(fpath))
|
mkdir_if_missing(osp.dirname(fpath))
|
||||||
with open(fpath, 'w') as f:
|
with open(fpath, 'w') as f:
|
||||||
json.dump(obj, f, indent=4, separators=(',', ': '))
|
json.dump(obj, f, indent=4, separators=(',', ': '))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user