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
@ -97,9 +97,3 @@ class VideoDataset(Dataset):
|
|||||||
imgs = torch.cat(imgs, dim=0)
|
imgs = torch.cat(imgs, dim=0)
|
||||||
|
|
||||||
return imgs, pid, camid
|
return imgs, pid, camid
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -183,9 +183,3 @@ class MuDeep(nn.Module):
|
|||||||
return y, x
|
return y, x
|
||||||
else:
|
else:
|
||||||
raise KeyError("Unsupported loss: {}".format(self.loss))
|
raise KeyError("Unsupported loss: {}".format(self.loss))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,4 +86,3 @@ class ResNet50M(nn.Module):
|
|||||||
return prelogits, combofeat
|
return prelogits, combofeat
|
||||||
else:
|
else:
|
||||||
raise KeyError("Unsupported loss: {}".format(self.loss))
|
raise KeyError("Unsupported loss: {}".format(self.loss))
|
||||||
|
|
||||||
|
@ -263,10 +263,3 @@ def test(model, queryloader, galleryloader, use_gpu, ranks=[1, 5, 10, 20]):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -249,10 +249,3 @@ def test(model, queryloader, galleryloader, use_gpu, ranks=[1, 5, 10, 20]):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -265,10 +265,3 @@ def test(model, queryloader, galleryloader, use_gpu, ranks=[1, 5, 10, 20]):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -267,10 +267,3 @@ def test(model, queryloader, galleryloader, pool, use_gpu, ranks=[1, 5, 10, 20])
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -283,10 +283,3 @@ def test(model, queryloader, galleryloader, pool, use_gpu, ranks=[1, 5, 10, 20])
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
8
utils.py
8
utils.py
@ -88,11 +88,3 @@ 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