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

How to use it? #2

Open
souvikqb opened this issue Oct 24, 2023 · 9 comments
Open

How to use it? #2

souvikqb opened this issue Oct 24, 2023 · 9 comments

Comments

@souvikqb
Copy link

Can someone please share a step-by-step procedure to get started?

I would prefer a Non-Gradio Approach (CLI or HF Pipeline)

@Zeqiang-Lai
Copy link
Owner

Zeqiang-Lai commented Oct 24, 2023

Here is an example

from minidalle3.model import MiniDALLE3

model = MiniDALLE3('gpt3.5', prompt_path="minidalle3/prompts/prompt-v2.txt")
message = [model.system_message, 'I have read a story where it talks about an "astronaut riding a horse" -- What does it look like ?']
images = []
text, image = state['model'].ask(state['messages'], state['images'])
if image is not None:
   image = image.image

@souvikqb
Copy link
Author

Here is an example

from minidalle3.model import MiniDALLE3

model = MiniDALLE3('gpt3.5', prompt_path="minidalle3/prompts/prompt-v2.txt")
message = [model.system_message, 'I have read a story where it talks about an "astronaut riding a horse" -- What does it look like ?']
images = []
text, image = state['model'].ask(state['messages'], state['images'])
if image is not None:
   image = image.image

Thank for the code snippet, I'll definitely try it out and let you know.

  1. I was trying to access the Demo but for some reason it was not loading, can you please check it once?

  2. I wanted to learn whether this model is allowed for commercial use or for just research purposes?

@Zeqiang-Lai
Copy link
Owner

  1. The demo can be accessed normally on my computer.
  2. We are still working on the advanced version of minidall3 👨‍💻 and have not released any model yet. Currently, the demo is built with open techniques (ChatGPT + SDXL + IP-Adapter). I think SDXL and ChatGPT are allowed for commercial use. IP-adapter is built on SD, so it might be allowed for commercial use as well but I am not sure about it.

@souvikqb
Copy link
Author

  1. The demo can be accessed normally on my computer.

For the Demo I'm getting this, the page keeps on loading but nothing is displayed --
image

  1. We are still working on the advanced version of minidall3 👨‍💻 and have not released any model yet. Currently, the demo is built with open techniques (ChatGPT + SDXL + IP-Adapter). I think SDXL and ChatGPT are allowed for commercial use. IP-adapter is built on SD, so it might be allowed for commercial use as well but I am not sure about it.

Would love to have this as an HF Pipeline
What I'm looking for is-

  1. Any easy way to download and load the model on GPU
  2. Have some parameters to play with to get different outputs
  3. Chat based memory to help it remember things and keep the conversation flowing (if possible)

@souvikqb
Copy link
Author

@Zeqiang-Lai
Hey Can you check this Colab Notebook - https://colab.research.google.com/drive/1MR5raiKXpqhHjcakcMtcl-izoShtE6nm?usp=sharing

I was unable to get started with the above snippet for some reason.

If this Colab works out, you can also add a Colab Demo for people to try out!

@souvikqb
Copy link
Author

Hi any updates? @Zeqiang-Lai

@souvikqb
Copy link
Author

souvikqb commented Nov 1, 2023

Hey!

I was able to get the Demo working

Can you work on a Demo Colab Notebook as well? @Zeqiang-Lai

@Zeqiang-Lai
Copy link
Owner

I am sorry that I am very busy for these moments, we will include the Colab demo for our next version.

@souvikqb
Copy link
Author

souvikqb commented Nov 1, 2023

Sure, please let me know once you release an update

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