Skip to content

Commit acb5a5c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0bf0041 commit acb5a5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/inferers/test_controlnet_inferers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def test_sampler_conditioned(self, model_params, controlnet_params, input_shape)
587587
controlnet.eval()
588588
mask = torch.randn(input_shape).to(device)
589589
noise = torch.randn(input_shape).to(device)
590-
590+
591591
# DDIM
592592
scheduler = DDIMScheduler(num_train_timesteps=1000)
593593
inferer = ControlNetDiffusionInferer(scheduler=scheduler)
@@ -759,7 +759,7 @@ def test_prediction_shape(
759759
inferer = ControlNetLatentDiffusionInferer(scheduler=scheduler, scale_factor=1.0)
760760
scheduler.set_timesteps(num_inference_steps=10)
761761
timesteps = torch.randint(0, scheduler.num_train_timesteps, (input_shape[0],), device=input.device).long()
762-
762+
763763
if dm_model_type == "SPADEDiffusionModelUNet":
764764
input_shape_seg = list(input_shape)
765765
if "label_nc" in stage_2_params.keys():

tests/networks/schedulers/test_scheduler_rflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_add_noise(self, input_param, input_shape, expected_shape):
5454

5555
@parameterized.expand(TEST_CASES)
5656
def test_step_shape(self, input_param, input_shape, expected_shape):
57-
scheduler = RFlowScheduler(**input_param)
57+
scheduler = RFlowScheduler(**input_param)
5858
model_output = torch.randn(input_shape)
5959
sample = torch.randn(input_shape)
6060
scheduler.set_timesteps(num_inference_steps=100, input_img_size_numel=torch.numel(sample[0,0,...]))
@@ -64,7 +64,7 @@ def test_step_shape(self, input_param, input_shape, expected_shape):
6464

6565
@parameterized.expand(TEST_FULl_LOOP)
6666
def test_full_timestep_loop(self, input_param, input_shape, expected_output):
67-
scheduler = RFlowScheduler(**input_param)
67+
scheduler = RFlowScheduler(**input_param)
6868
torch.manual_seed(42)
6969
model_output = torch.randn(input_shape)
7070
sample = torch.randn(input_shape)

0 commit comments

Comments
 (0)