DeepSquare.io 🔺 Profile picture
May 15 8 tweets 6 min read Twitter logo Read on Twitter
DeepSquare integrates the neural network #text2image model #StableDiffusion.

This thread presents how we #designed and implemented the #workflow to execute Stable Diffusion on the DeepSquare Grid.
We designed the workflow as follows:

The #prompt is sent over an environment variable.
Most of the parameters are sent via environment varibles.
Images are sent to transfer.deepsquare.run
The docker image is already compiled from github.com/Stability-AI/s… and is exported as registry-1.deepsquare.run/library/stable…

The steps are as follows:
1-Generate the images. Rows are distributed into task per #GPU.
2-Combine all the images into one grid. Image
Implementation​
We with the input, output and resources.
For the sake of readability, we use YAML. You can use an online YAML to #JSON converter if you wish to execute the workflow on the dev environment:
app.deepsquare.run/sandbox
Resource allocation, environment variable and input/output​. We will use 4 parallel tasks. Each task has 8 #CPU, 8 GB of #RAM, 1 #GPU Image
1. Inference loop: we need to execute a for directive which executes 4 steps in parallel.

DeepSquare already hosts its own models at /opt/models. If you plan to use your own model, you should import the model using the input directive.
2. Combine the rows​
Our docker image already includes #ImageMagick, meaning we can compose a new image from the generated images.

We send the "grid" image to transfer.deepsquare.run. The output directory contains all the images in their original resolution Image
Conclusion​
We have developed an #ML inference workflow. Most inference processes with an output will follow the same pattern:

-Launch the inference in parallel
-Reassemble the output

Learn more:
docs.deepsquare.run/docs/deploy-de…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with DeepSquare.io 🔺

DeepSquare.io 🔺 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @DeepSQUAREio

May 5
We are super proud to share with you DeepSquare Whitepaper 2.1!

#Decentralized High-performance Computing leveraging #Subnet Technology, providing revolutionary #Tokenomics with a clear #Roadmap

Read 👉 deepsquare.io/wp-content/upl…
The team has been hard at work developing a #decentralized platform that allows users to access powerful #computing resources from anywhere in the world.
By leveraging #blockchain technology with @Avalanche #Subnet solutions, we created a network that is both fast and secure, ensuring that users can trust the platform with their most sensitive data and applications.
Read 7 tweets
Apr 5
We’re thrilled to launch our cutting-edge development environment, designed to revolutionize the world of #ArtificialIntelligence & High-Performance Computing

#AI #CloudComputing 👇
deepsquare.io/ai/access-the-…
The app.DeepSquare.run Customer Portal provides easy access to our infrastructure and an array of pre-built applications, including #Text2Image, #Blender, @unity Render Streaming, and #AI Upscaling.
The Developer App within the portal is a game-changer for those looking to create and run custom jobs in an #HPC environment.

It offers unmatched flexibility and ease of use, enabling users to develop and deploy their applications on the @DeepSQUAREio infrastructure.
Read 5 tweets
Feb 24
1/5 - Are you an #AI enthusiast?

We invite you to test our #Decentralized Infrastructure by deploying #Upscaling and #Text2Image #AImodels to unleash your creativity and upscale your memories like never before.

All you need to do is fill out this form: tinyurl.com/DeepSquareTest…
2/5 - We've deployed 3 pre-trained models

Real-ESRGAN, for image restoration;
#stablediffusion v2.1 and #waifudiffusion v1.4 to create realistic images and art from descriptions in natural language.
3/5 - We've received some fantastic feedback from users who have tried these new features. It is exciting to see our community members sharing their #aigeneratedart Image generated by Charly Mancel, DeepSquare Head of Product
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(