2025-01-10 00:25:00 +00:00
|
|
|
import json
|
2025-01-10 00:10:07 +00:00
|
|
|
|
2025-01-10 00:25:00 +00:00
|
|
|
from skynet.constants import *
|
2025-02-08 01:01:00 +00:00
|
|
|
from skynet.dgpu.compute import maybe_load_model, compute_one
|
|
|
|
|
|
|
|
|
|
|
|
async def test_diffuse(inject_mockers):
|
|
|
|
model = 'skygpu/txt2img-mocker'
|
|
|
|
mode = 'diffuse'
|
|
|
|
params = {
|
|
|
|
"prompt": "Kronos God Realistic 4k",
|
|
|
|
"model": model,
|
|
|
|
"step": 21,
|
|
|
|
"width": 1024,
|
|
|
|
"height": 1024,
|
|
|
|
"seed": 168402949,
|
|
|
|
"guidance": "7.5"
|
2025-01-10 00:10:07 +00:00
|
|
|
}
|
|
|
|
|
2025-02-08 01:01:00 +00:00
|
|
|
with maybe_load_model(model, mode) as model:
|
|
|
|
compute_one(model, 0, mode, params)
|