huoshan/test.js

25 lines
590 B
JavaScript
Raw Permalink Normal View History

2024-10-02 17:35:29 +08:00
import {image} from "huoshan"
import u from "util"
function main() {
let a = image.image2image(u.base64(image.readImage("img_2.jpeg")), "在吃冰淇淋", {
style_reference_args: {
id_weight: 1.0
}
})
let b = image.image2image(image.readImage("img_2.jpeg"), "在吃冰淇淋", {
style_reference_args: {
id_weight: 1.0
}
})
let c = image.image2image([""], "在吃冰淇淋", {
style_reference_args: {
id_weight: 1.0
}
})
return {
a: a,
b: b,
c: c
}
}