Comments (1)
- 因为第234行https://github.com/machanic/SimulatorAttack/blob/master/sign_hunter_attack/attack.py#L334 对于bxs_t 已经查询过一次。所以不必重复查询
self.loss_fct(model, bxs_t, label, target))
。(虽然代码中重复查询了一次,但是因为前面已经查询过了,所以统计查询次数的时候query_count不用增加1次) - 而且
bxs_t = self.xo_t
,所以只有当self.xo_t
被更新时(即self.exhausted=True
)需要增加查询次数,这一点在348行https://github.com/machanic/SimulatorAttack/blob/master/sign_hunter_attack/attack.py#L348增加了。 - 注意在https://github.com/machanic/SimulatorAttack/blob/master/sign_hunter_attack/attack.py#L364处,
self.xo_t = xs_t.clone()
,而xs_t
每次传入def _suggest
函数时都不同。 - 如果我的理解有误,请告诉我。
from simulatorattack.
Related Issues (14)
- Model file is missing HOT 3
- backbone HOT 2
- MODELS? HOT 1
- lost a file named "CIFAR-10_images.npz" HOT 2
- AutoZoom_attack "--epsilone" 应该设置多少为好? , 参数应该如何设置可以达到好的效果? 谢谢马哥 HOT 2
- No Suchfile bandits_attack_conf.json HOT 1
- 为什么攻击模拟器的查询效率会变高呢? HOT 3
- About Loss Functions and Targeted Attacks HOT 1
- About the choice of training and testing datasets
- 关于meta_simulator_bandits/learning/script/generate_bandits_training_data_script.py中的parser.add_argument('--json-config-file', default="./configures/bandits_attack_conf.json",) HOT 1
- {root}/train_pytorch_model/real_image_model/{dataset}-pretrained/{arch},模型的云盘链接失效 HOT 7
- {root}/train_pytorch_model/real_image_model/{dataset}-pretrained/{arch},模型的云盘链接还是失效状态 HOT 1
- CIFAR-10_images.npz 和cifar100的测试数据能方便提供一下吗。之前的链接好像挂了 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 simulatorattack.