xxxxxxxxxx
17
function setup() {
// Create two Style methods with different pre-trained models
style1 = ml5.styleTransfer('https://cdn.jsdelivr.net/gh/minicrazymind/pixel_transfer/root/models/pixels/s', modelLoaded);
}
// A function to be called when the models have loaded
function modelLoaded() {
console.log('model loaded');
}
// Apply the transfer to both images!
function transferImages() {
// style1.transfer(inputImg, function (err, result) {
// resultImage = createImg(result.src).parent('styleA');
// resultImage.save('result','jpg')
// });
}