Commit 3b55dc3
refactor all (#59)
* refactor gans and base
* feat: add refactor for plg
* feat: add refactor for plg
* refactor: location of latents sampler
* fix: some error
* feat: add some comments
* fix some error & add some docs
* fix: detach
* fix: parallel error
* fix: parallel apply error
* refactor: image classifier model forward
* fix: hook error
* fix error of classifier and add train example
* fix: example error
* refactor: remove some unuse
* refactor: position of sampler
* refactor attacker
* feat: add preprocess datasets
* feat: ppa
* feat: add bido, vib, ls trainer
* fix: some error
* fix some error
* feat: add constraint
* feat: add brep optimization
* feat: add rlb & mirror white
* fix: out of memory
* minor refactor
* fix: warning when resize
* refactor: reformat
* fix: final evaluation
* fix: final selection
* fix: preprocess dataset error
* feat: dataset preprocess
* refactor: preprocess data
* fix: dataset preprocess
* fix: some error in examples
* feat: add feature loss & fix: some typo
* fix: description error for datasets
* fix: typo
* fix: typo and programma error
* fix: metric batch
* refactor lomma gmi
* fix: classifier training
* fix: train script for classifier
* feat: dataset readme
* fix: some error
* fix: dataset error
* fix: dataset
* add: original ppa code
* fix: remove unused code
* add: split files
* fix: some bugs
* remove datasets
* deleted: datasets/READba/README.md
deleted: datasets/celeba/celeba_split.py
deleted: datasets/hdceleba/README.md
deleted: datasets/hdceleba/celeba_split.py
renamed: datasets/celeba/split_files/private_test.txt -> src/modelinversion/datasets/split_files/private_test.txt
renamed: datasets/celeba/split_files/private_train.txt -> src/modelinversion/datasets/split_files/private_train.txt
renamed: datasets/celME.md
deleted: datasets/celeeba/split_files/public.txt -> src/modelinversion/datasets/split_files/public.txt
* feat: add some deep inversion loss & fix some error
* fix: celeba train
* remove incv1
* fix:some bugs
* fix:log for classfier training
* iter in gan training
* minor modification
* modified: examples/standard/attacks/gmi.py
modified: examples/standard/gan_training/gmi.py
modified: examples/standard/gan_training/plgmi.py
modified: src/modelinversion/sampler/base.py
modified: src/modelinversion/utils/hook.py
* fix: dataset process in classifier training
* modified: examples/standard/attacks/gmi.py
* modified: examples/standard/gan_training/gmi.py
modified: src/modelinversion/metrics/base.py
* fix: acc in trainer
* params in gmi
* fix:set center crop as true
* rename some classes
* fix: programma error in loss
* rename some classes
* remove BaseTargetModel
* feat: release some script & repr for loss
* fix: generate dataset by generator
* fix: reset params to <fill it>
* feat: raise exception in torchvision wrapper
* substitute Flatten with nn.Flatten
* substitute Flatten with nn.Flatten
* add ImageImageFolder declaration
* fix: typo
* fix: add abstract method to BaseImageGenerator
* fix: correct a spelling mistake
* fix: comments in scores
* refactor: dataset & add ffhq
* fix: ppa script error
* rename GanTrainer
* refactor gan
* feat: add some comments in utils
* add some comments in io.py
* add some comments in io.py
* add some comments in utils
* feat: generator dataset
* add acc var
* feat: add attack flow
* try fix: lokt gan
* feat: add register for models
* add register utils in __iit__
* feat: config mixin
* feat: register for model config
* feat: classifier wrapper config
* feat: classifier config load successfully
* feat: save config after train classifier
* feat: config for GAN
* feat: config in __init__
* save config in gan training
* refactor: location of config
* fix: vib config
* feat: comments on ConfigMixin
* fix: acc std
* fix: acc metric
* fix classifier
* feat: lokt generation
* fix: config error
* fix: save error
* refactor: remove some unuse
* fix: metric exception
* fix: plg gan
* fix: ked gan train & metric; feat: tl training
* fix: kedmi256 structure
* feat: ked train script
* refactor: rename some scripts
* fix: deep inversion first bn weight
* feat: add resnest
* feat: Add BaseOutput for Optimization
* fix: metric error
* feat: add face dist & fix std error
* fix: save metric resule
* feat: post metric
* refactor attacker
* fix: final eval
* fix: gather
* fix: final selection
* fix lomma gmi
* fix: final selection
* feat: add post evaluation
* feat: add top k score optimized in genetic optimization
* refactor: remove unuse package
* add vmi (#60)
* feat: add sampler
* modified: examples/standard/attacks/vmi.py
* feat: add latent sampler
* feat: add optimization
* feat: add optimization
* feat: add optimization
* feat: add loss for vmi
* feat: add loss for vmi
* feat: prepare for attack
* feat: prepare for attack
* fix: remove num_range
* refactor: prepare single thread
* feat: add single thread vmi
* feat: add FlowConfig
* feat: add multithread training
* feat: add metrics
* feat: add metrics
* feat: add metrics
* feat: add metrics
* feat: add metrics
* feat: add transform
* fix: some minor bugs
---------
Co-authored-by: final-solution <2507586353@qq.com>
* fix: fid
* feat: c2f
* fix: c2f
* feat: defense example
* Supplement (#61)
* add: parameter management
* feat: extend the parameter management in the future
* feat: extend the parameter management in the future
* fix: new requirements
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* feat: README for examples/standard
* feat: README for examples/standard
---------
Co-authored-by: final-solution <2507586353@qq.com>
Co-authored-by: Yixiang Qiu <99653938+final-solution@users.noreply.github.com>
Co-authored-by: Wenbo Yu <cswbyu@163.com>
---------
Co-authored-by: final-solution <2507586353@qq.com>
Co-authored-by: Yixiang Qiu <99653938+final-solution@users.noreply.github.com>
Co-authored-by: Wenbo Yu <cswbyu@163.com>1 parent 4569129 commit 3b55dc3
614 files changed
Lines changed: 78035 additions & 75743 deletions
File tree
- .vscode
- attack_scripts
- train_models
- checkpoints
- GMI
- General
- KEDMI
- Mirror
- PLGMI
- SecretGen
- VMI
- target_eval
- config
- dataset
- celeba
- hdceleba
- defense_scripts
- docs
- examples/standard
- adapter_training
- attacks
- classifier_training
- dataset_preprocess
- gan_training
- results
- src/modelinversion
- attack
- BREPMI
- code
- C2FMI/code
- models
- op
- utils
- DeepInversion
- code
- cifar10
- models
- utils
- GMI
- code
- KEDMI
- code
- Lokt
- models
- Lomma
- Mirror
- code
- blackbox
- classifiers
- genforce
- configs
- converters
- pggan_official
- metrics
- stylegan2_official
- dnnlib
- submission
- internal
- tflib
- ops
- metrics
- training
- stylegan2ada_pth_official
- dnnlib
- metrics
- torch_utils
- ops
- training
- stylegan2ada_tf_official
- dnnlib
- tflib
- ops
- metrics
- training
- stylegan_official
- dnnlib
- submission
- _internal
- tflib
- metrics
- training
- datasets
- docs
- metrics
- models
- runners
- controllers
- losses
- scripts
- utils
- utils
- whitebox
- PLGMI
- code
- links
- metrics
- models
- discriminators
- generators
- PPA
- RLBMI
- code
- SecretGen
- tgt_models
- VMI
- chestxray
- configs
- flow
- run_scripts
- optimize
- configs
- datasets
- split_files
- defense
- BiDO
- DP
- LS
- TL
- Vib
- distill
- no_defense
- metrics
- fid
- knn
- psnr
- ssim
- models
- adapters
- classifiers
- evolve
- efficientnet
- evolve
- facenet
- gans
- inception
- ir152
- resnet
- vgg
- vit
- sampler
- flow
- scores
- train
- classifier
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
| 128 | + | |
126 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
| |||
68 | 59 | | |
69 | 60 | | |
70 | 61 | | |
71 | | - | |
72 | 62 | | |
73 | 63 | | |
74 | 64 | | |
| |||
88 | 78 | | |
89 | 79 | | |
90 | 80 | | |
91 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments