tests: faster tests
Before Width: | Height: | Size: 269 KiB After Width: | Height: | Size: 263 KiB |
Before Width: | Height: | Size: 263 KiB After Width: | Height: | Size: 243 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 274 KiB After Width: | Height: | Size: 265 KiB |
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 253 KiB |
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 274 KiB |
Before Width: | Height: | Size: 266 KiB After Width: | Height: | Size: 251 KiB |
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 237 KiB |
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 265 KiB |
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 254 KiB |
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 266 KiB After Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 261 KiB |
Before Width: | Height: | Size: 274 KiB After Width: | Height: | Size: 266 KiB |
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 248 KiB |
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 257 KiB |
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 270 KiB |
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 255 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 272 KiB After Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 266 KiB After Width: | Height: | Size: 247 KiB |
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 254 KiB |
Before Width: | Height: | Size: 248 KiB After Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 251 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 239 KiB |
Before Width: | Height: | Size: 274 KiB After Width: | Height: | Size: 267 KiB |
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 252 KiB |
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 268 KiB |
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 250 KiB |
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 254 KiB |
Before Width: | Height: | Size: 270 KiB After Width: | Height: | Size: 263 KiB |
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 248 KiB |
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 271 KiB |
@ -173,7 +173,11 @@ def test_img_to_img_fruit_2_gold(
|
||||
img = LazyLoadingImage(
|
||||
filepath=os.path.join(TESTS_FOLDER, "data", "bowl_of_fruit.jpg")
|
||||
)
|
||||
|
||||
target_steps = 25
|
||||
if init_strength >= 1:
|
||||
needed_steps = 25
|
||||
else:
|
||||
needed_steps = int(target_steps / (1 - init_strength))
|
||||
prompt = ImaginePrompt(
|
||||
"a white bowl filled with gold coins",
|
||||
prompt_strength=12,
|
||||
@ -181,7 +185,7 @@ def test_img_to_img_fruit_2_gold(
|
||||
init_image_strength=init_strength,
|
||||
mask_prompt="(fruit{*2} OR stem{*10} OR fruit stem{*3})",
|
||||
mask_mode="replace",
|
||||
steps=80,
|
||||
steps=needed_steps,
|
||||
seed=1,
|
||||
sampler_type=sampler_type,
|
||||
)
|
||||
|