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

.txt2img is not a function #20

Open
nietsmmar opened this issue Mar 6, 2024 · 1 comment
Open

.txt2img is not a function #20

nietsmmar opened this issue Mar 6, 2024 · 1 comment

Comments

@nietsmmar
Copy link

nietsmmar commented Mar 6, 2024

I am using the example code to generate text2img. But I get .txt2img is not a function as an error.

When I print my NovitaSDK-Instance I get this:

[Info] NovitaSDK {
  cleanup: [Function (anonymous)],
  outpainting: [Function (anonymous)],
  removeBackground: [Function (anonymous)],
  replaceBackground: [Function (anonymous)],
  mixpose: [Function (anonymous)],
  doodle: [Function (anonymous)],
  lcmTxt2Img: [Function (anonymous)],
  lcmImg2Img: [Function (anonymous)],
  replaceSky: [Function (anonymous)],
  replaceObject: [Function (anonymous)],
  mergeFace: [Function (anonymous)],
  removeText: [Function (anonymous)],
  removeWatermark: [Function (anonymous)],
  restoreFace: [Function (anonymous)],
  reimagine: [Function (anonymous)],
  createTile: [Function (anonymous)],
  txt2Video: [Function (anonymous)],
  img2Video: [Function (anonymous)],
  img2VideoSync: [Function (anonymous)],
  img2VideoMotion: [Function (anonymous)],
  img2VideoMotionSync: [Function (anonymous)],
  upload: [Function (anonymous)],
  key: "key",
  BASE_URL: "https://api.novita.ai"
}

And yes, there is no txt2img. What am I doing wrong?

I can't find /v3/async/txt2img anywhere in this codebase.

@blkc
Copy link
Contributor

blkc commented Apr 14, 2024

I am using txt2ImgV3 today and that seems to work fine.

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