Git Product home page Git Product logo

ctrl's People

Contributors

meet-cjli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

buhua-liu

ctrl's Issues

I get the error message when I run the sample command

python main_train.py --dataset cifar10 --mode normal --method simclr --threat_model our --channel 1 2 --trigger_position 15 31 --poison_ratio 0.01 --lr 0.06 --wd 0.0005 --magnitude 100.0 --poisoning --epochs 800 --gpu 0 --window_size 32 --trial clean

Use GPU: 0 for training => creating cnn model 'resnet18' CIFAR-variant Resnet is loaded Files already downloaded and verified Files already downloaded and verified

File "/workspace/ChengYi/CTRL/loaders/diffaugment.py", line 266, in set_aug_diff raise NotImplementedError NotImplementedError

How do I solve this?

experiment on imagenet100

Hi, thanks for presenting your great work here!
I successfully reproduce your result on cifar10 dataset with expected high ASR, around 80%.
However, when I am trying to transfer your attack on imagenet100 dataset (without down-sampling to 64*64), I use your code without any changes (window size=32, pos_list = [(15,15), (31,31)] magnitude=100) to generate poison samples in poisoning rate 1%, but the attack is unsuccessful with very low ASR. Do you have any suggestions? Thanks!

Number of classes in diffaugment.py

I was wondering why number of classes is set to 100 for CIFAR10, in diffaugment.py function:set_aug_diff(args).

if args.dataset == 'cifar10':
    mean = (0.4914, 0.4822, 0.4465)
    std = (0.2023, 0.1994, 0.2010)
    args.size = 32
    args.num_classes = 100
    args.save_freq = 100

elif args.dataset == 'cifar100':
    mean = (0.5071, 0.4867, 0.4408)
    std = (0.2675, 0.2565, 0.2761)
    args.size = 32
    args.num_classes = 100
    args.save_freq = 100

elif args.dataset == 'imagenet-100':
    mean = (0.485, 0.456, 0.406)
    std = (0.229, 0.224, 0.225)
    args.size = 64
    args.save_freq = 100
    args.num_classes = 100

else:
    raise ValueError(args.dataset)

Requesting requirements.txt

Dear authors, thank you for your wonderful work. I was wondering if it is possible to add a list of requirements to the repo, either in the form of requirements.txt or in the README.md.

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.