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

Can i execute SD Graph in runtime mode? #6

Open
ShockWave2048 opened this issue Dec 1, 2023 · 1 comment
Open

Can i execute SD Graph in runtime mode? #6

ShockWave2048 opened this issue Dec 1, 2023 · 1 comment

Comments

@ShockWave2048
Copy link

ShockWave2048 commented Dec 1, 2023

Hi FernRP!
Can i execute SD Graph in runtime mode?
I tried this code, no errors, no reaction from the a1111 terminal.
Thanks for answer!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FernNPRCore;
using FernNPRCore.SDNodeGraph;
using UnityEngine.SceneManagement;

public class SDGTest : MonoBehaviour
{
    public StableDiffusionGraph sd;

    void Start()
    {
        sd.LinkToScene(SceneManager.GetActiveScene());

	SDStartNode ss;
	sd.nodes.ForEach((n) => 
        { 
            if (n != null && n is SDStartNode) 
            { 
                ss = n as SDStartNode;
				ss.OnExecute();
	    } else { return; }
        });
   }
}
@DJ-Huang
Copy link
Member

DJ-Huang commented Dec 4, 2023

Theoretically it should be runtime capable, but I haven't tested it yet, I'll test the following in a few days and try to support runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants