jina-ai / dalle-flow

🌊 A Human-in-the-Loop workflow for creating HD images from text
grpcs://dalle-flow.dev.jina.ai
2.83k stars 211 forks source link

Can't use stable diffusion executor #106

Closed tom-doerr closed 1 year ago

tom-doerr commented 2 years ago

I'm trying to use the stable diffusion executor using

doc = Document(text=prompt).post(server_url, target_executor='stable')
print(doc)
da = doc.matches

but I'm getting no images back:

<Document ('id', 'text') at 6f0eb3ec81132016722bd729f8b88e25>

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<timed exec> in <module>

[/usr/local/lib/python3.7/dist-packages/docarray/array/mixins/plot.py](https://localhost:8080/#) in plot_image_sprites(self, output, canvas_size, min_size, channel_axis, image_source, skip_empty, show_progress, show_index, fig_size, keep_aspect_ratio)
    435         """
    436         if not self:
--> 437             raise ValueError(f'{self!r} is empty')
    438 
    439         import matplotlib.pyplot as plt

ValueError: <DocumentArray (length=0) at 140421956184400> is empty

Is the stable diffusion executor not online?

delgermurun commented 2 years ago

Hi @tom-doerr. Yes, we haven't deployed stable diffusion executor to our demo server yet.