-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
29 lines (26 loc) · 879 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# classifier_class AlexNetClassifier
# AlexNetRandomInitClassifier
# MadryClassifier
# UnetEncoderClassifier
# ConvNeXtLClassifier
# SIMCLRClassifier
# SwinTFLClassifier
# You can --classifier_path to overwrite default classifier path
#
# cone_projection False / True
# xzero_prediction False / True
python -m scripts.classifier_sample \
--data_path /data/imagenet/\
--classifier_class ConvNeXtLClassifier\
--classifier_perturbation 1\
--model_path models/256x256_diffusion_uncond.pt\
--use_fp16 True\
--cone_projection True\
--xzero_prediction True\
--seed 1\
--batch_size 50 --num_samples 50\
--lp_custom 1.0 --lp_regularization_scale 0.15\
--classifier_scale 0.1\
--skip_timesteps 100\
--init_image True