Comments (2)
在定制模型时,所使用的权重文件.pth好像会依赖于原来被攻击模型代码的目录结构,从而引发一些麻烦。
from adversarial-attack-on-person-reid-with-deep-mis-ranking.
感谢关注。
reid-strong baseline的工作确实很优秀,但暂时没有与其整合的计划。
关于PCB,我只针对PCB的输入大小做了改动(参见opts.py),其他部分与原论文一致,PCB的网络结构可以在models文件夹下找到,我想应该还是比较容易复现的。
关于定制模型可参考readme中Prepare pretrained ReID models小节的两处optional选项。若需要攻击自定义reid模型:(1)设计网络结构并放到models文件夹下。(2)在__init__.py文件中注册结构的文件名,并根据自己需要修改Line 38–53,以解决resume时前缀的问题(这里的前缀问题指DataParallel的跨版本问题,因为当初我pretrain模型时环境是pytorch0.3,后来服务器迁移后的运行环境是0.4,目前用1.0+的话可以需要做调整)。(3)把预训练好的权重文件按模型名建立自己的文件,也放在models下,详情可参考同节downlinks章的pretrained模型的命名方式。我猜所谓的依赖目录结构目测是train.py中Line80-82的路径拓展?如果按上述推荐方式放置自定义模型,直接运行train文件是会自动定位到models下的同名模型文件夹下的.pth文件的,如果想自定义位置,可以考虑删除上述行并自己在命令行参数中指定路径。
from adversarial-attack-on-person-reid-with-deep-mis-ranking.
Related Issues (17)
- There are some bugs in your code. HOT 1
- 对抗样本的可视化问题 HOT 4
- Black box attack HOT 1
- eval_freq?
- 运行时出错,我是直接下载的完整代码,但是在运行时出现如下错误: HOT 4
- Would D leak knowledge to G HOT 3
- Error while running with CUHK03 dataset
- The weight files HOT 1
- G model
- utils.py应该取消import cv2 HOT 1
- alignedreid.py 缩进没有调整好 HOT 1
- 论文中的mask问题 HOT 3
- Could ReID system be attacked by digital attack? HOT 3
- Some question about the mask HOT 3
- Feature Extraction HOT 1
- ???
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 adversarial-attack-on-person-reid-with-deep-mis-ranking.