Comments (3)
Hello!
In Equation 6, as shown bellow, you calcule the L_{s} by:
However, in train.py, you calcule loss_abn and loss_nor by doing:
loss_abn = torch.abs(self.margin - torch.norm(torch.mean(feat_a, dim=1), p=2, dim=1)) loss_nor = torch.norm(torch.mean(feat_n, dim=1), p=2, dim=1) loss_um = torch.mean((loss_abn + loss_nor) ** 2)
Why you used the torch.abs and squared (loss_abn + loss_nor)? This don't match the equation. Maybe some trick to converge?
Regards!
Hi Sorry for the late reply. Doing this shows better convergence. it did the same thing as the equation in the paper.
from rtfm.
@tianyu0207 Can you give a reference to why this implementation is the same as Equation (6), or give proof?
Thanks a lot.
from rtfm.
Hi, I have the same question. Have you got any idea on this?
from rtfm.
Related Issues (20)
- feature extraction
- Results can't be reproduce for Sanghaitech
- Feature Extraction
- Generation of MatLab Labels
- AUC for UCF-Crime is Too low and Can't reproducible. HOT 1
- Can't download UCF_Crime test dataset
- 怎么生成ucf-i3d.list和ucf-i3d-test.list?
- checkpoints for UCF-Crime and XD-Violence datasets
- some questions about extracting I3D features
- xd-violence
- How to implement inference code? HOT 1
- Where do I find dir test_frame_mask, or make it? HOT 1
- how to make ground truth file and list file for shanghai tech dataset
- UCSD-Ped2 实验设置
- Custom .mat files HOT 3
- Can not reproduce the provided I3D features extracted from UCF-Crime on RTFM Github
- The UCF-Crime checkpoints link is disabled HOT 2
- Only ShanghaiTech features and checkpoint for ShanghaiTech can be used in the link
- UCF-Crime train I3d features on Google drive 下载失败—已被禁止 HOT 1
- Feature extraction results did not meet expectations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtfm.