Skip to content

Commit

Permalink
fix the sample num bug in inference.
Browse files Browse the repository at this point in the history
Signed-off-by: lawrence-cj <[email protected]>
  • Loading branch information
lawrence-cj committed Dec 22, 2024
1 parent 655c2f7 commit 295ee05
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/bash_run_inference_metric_geneval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
# ============ end of custom code block ===========

default_step=20
default_sample_nums=533
default_sample_nums=553
default_sampling_algo="flow_dpm-solver"
default_add_label=''

Expand Down
2 changes: 1 addition & 1 deletion scripts/infer_metric_run_inference_metric_geneval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output_dir=output
# ============ 0. start of custom code block ============
#### Infer Hyper
default_step=20 # inference step for diffusion model
default_sample_nums=533 # inference first $sample_nums sample in list(json.keys())
default_sample_nums=553 # inference first $sample_nums sample in list(json.keys())
default_sampling_algo="flow_dpm-solver"
default_add_label=''
default_log_geneval=false
Expand Down
2 changes: 1 addition & 1 deletion scripts/infer_run_inference_geneval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ================= sampler & data =================
np=8 # number of GPU to use
default_step=20 # 14
default_sample_nums=533
default_sample_nums=553
default_sampling_algo="flow_dpm-solver"
default_add_label=''

Expand Down
2 changes: 1 addition & 1 deletion scripts/infer_run_inference_geneval_diffusers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ================= sampler & data =================
np=8 # number of GPU to use
default_step=20 # 14
default_sample_nums=533
default_sample_nums=553
default_sampling_algo="dpm-solver"
default_add_label=''

Expand Down
2 changes: 1 addition & 1 deletion scripts/inference_geneval.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class SanaInference(SanaConfig):
batch_size: int = field(default=1, metadata={"help": "how many samples can be produced simultaneously"})
skip_grid: bool = field(default=False, metadata={"help": "skip saving grid"})
model_path: Optional[str] = field(default=None, metadata={"help": "Path to the model file (optional)"})
sample_nums: int = 533
sample_nums: int = 553
cfg_scale: float = 4.5
pag_scale: float = 1.0
sampling_algo: str = field(
Expand Down
2 changes: 1 addition & 1 deletion scripts/inference_geneval_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def parse_args():
help="skip saving grid",
)

parser.add_argument("--sample_nums", default=533, type=int)
parser.add_argument("--sample_nums", default=553, type=int)
parser.add_argument("--add_label", default="", type=str)
parser.add_argument("--exist_time_prefix", default="", type=str)
parser.add_argument("--gpu_id", type=int, default=0)
Expand Down
2 changes: 1 addition & 1 deletion tools/metrics/compute_geneval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ geneval=true

np=8 # number of GPU to use
py=tools/metrics/geneval/evaluation/evaluate_images.py
default_sample_nums=533
default_sample_nums=553
report_to=wandb
default_log_suffix_label=''

Expand Down

0 comments on commit 295ee05

Please sign in to comment.