Research Article

Vision Transformer-Based Video Hashing Retrieval for Tracing the Source of Fake Videos

Algorithm 1

The whole calculation process of the hash triplet loss.
(1)ViTHash outputted hashes and related labels as ;
(2) Voted hash centers and related labels as loss of hash triplet loss
(3)Calculate the intraloss between the triplet samples and the voted hash center;
(4)Def IntraLoss(,):
(5)return ;
(6);
(7)Calculate the interloss between the triplet samples with the other hash centers;
(8)Def InterLoss(,):
(9)return ;
(10);
(11)Calculate the hash triplet loss;
(12)Function Main :
(13);
(14)for indo
(15)  for indo
(16)   if then
(17)    ;
(18)    ;
(19)   else
(20)    ;
(21)    ;
(22)  ;
(23) ;
(24)return;