Giter VIP home page Giter VIP logo

Comments (2)

finger-monkey avatar finger-monkey commented on July 24, 2024

在定制模型时,所使用的权重文件.pth好像会依赖于原来被攻击模型代码的目录结构,从而引发一些麻烦。

from adversarial-attack-on-person-reid-with-deep-mis-ranking.

whj363636 avatar whj363636 commented on July 24, 2024

感谢关注。

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.