Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vary + Remix on Upscaled Image only works on either Strong or Subtle #248

Open
tglanz opened this issue Nov 30, 2023 · 0 comments
Open

Vary + Remix on Upscaled Image only works on either Strong or Subtle #248

tglanz opened this issue Nov 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tglanz
Copy link

tglanz commented Nov 30, 2023

the code that reproduces this issue or a replay of the bug

const { Midjourney } = require("midjourney");

async function main() {
    const client = new Midjourney({
        ServerId: '<>',
        ChannelId: '<>',
        SalaiToken: '<>',
        Ws: true,
    });

    const prompt1 = "A red boat --version 5.2 --turbo --stylize 250";
    const prompt2 = "A red boat with a big sail --version 5.2 --turbo --stylize 250";

    try {
        await client.init();

        console.log("Imagine");
        const imagineResult = await client.Imagine(prompt1);

        console.log("Upscale");
        const upscaleResult = await client.Upscale({
            index: 1,
            msgId: imagineResult.id,
            hash: imagineResult.hash,
            flags: imagineResult.flags,
        })
        
        for (const label of ["Vary (Strong)", "Vary (Subtle)"]) {
            const custom = upscaleResult.options
                .find(option => option.label === label);

            console.log(label);
            await client.Custom({
                msgId: upscaleResult.id,
                content: prompt2,
                flags: upscaleResult.flags,
                customId: custom.custom,
            });
        }
    } catch (err) {
        console.error(err);
    } finally {
        client.Close();
    }
}

main()
    .then(() => console.log("done"))
    .catch(err => console.error(err));

Describe the bug

Describe the bug

Variation+Remix using Custom API only works on Vary (Strong) action and hangs on the Vary (Subtle) action.

Expected behavior

Should work on either actions.

Additional Information

When executing the client.init function, discord opens the settings form an I see that the "High Variation Mode" is selected. It might be the reason. If so, how can we overcome this?

error log

None, just hangs.

@tglanz tglanz added the bug Something isn't working label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant