debangli / one-pixel-attack-pytorch Goto Github PK
View Code? Open in Web Editor NEWPytorch reimplementation of "One pixel attack for fooling deep neural networks"
License: MIT License
Pytorch reimplementation of "One pixel attack for fooling deep neural networks"
License: MIT License
李老师您好:
单像素攻击的论文中分别进行了目标攻击he非目标攻击。我想请教一下您,目标攻击的实现原理。只修改一个像素是如何使模型错误地预测对抗性图像为特定的标签呢?
希望您能百忙之中抽出时间回答我的问题,谢谢!
请问您的代码可以实现在迭代过程中像素点的颜色不变吗
Hello, I got the following error while running the attack. How can I solve it, please
File "attack.py", line 181, in
main()
File "attack.py", line 176, in main
results = attack_all(net, testloader, pixels=args.pixels, targeted=args.targeted, maxiter=args.maxiter, popsize=args.popsize, verbose=args.verbose)
File "attack.py", line 140, in attack_all
flag, x = attack(input, target[0], net, target_calss, pixels=pixels, maxiter=maxiter, popsize=popsize, verbose=verbose)
File "attack.py", line 89, in attack
inits = np.zeros([popmul*len(bounds), len(bounds)])
TypeError: 'float' object cannot be interpreted as an integer
I trained resnet101 and vgg16 without changing the codes but did not get the reported accuracies. Mine is just slightly above 80.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.