# Using Space

🗓️ **Event Period:** 14th August, 00:00 (EST) - 17th September, 23:59 (EST)

## Rules&#x20;

#### **How to Participate:**

1.Choose a [Stable Diffusion Space](https://lagrangedao.org/spaces) here and attempt to create some images following a theme provided by Lagrange: Mars Landscape, Mars Creatures, Mars Vehicles, Mars Buildings and live scenes.

* Each theme represents a piece of the puzzle that, when combined, will form a breathtaking scene on Planet Mars.
* Feel free to explore the [Stable Diffusion Base Space](https://lagrangedao.org/spaces/0x6091b2f5678952cAfbf02755D78973EBff302e11/Stable-Diffusion-Base-LoRA/card) and other [Stable Diffusion Spaces ](https://lagrangedao.org/spaces)updated by Space Builders.&#x20;

2.Upload your 3 best images to [Multichain.Storage](https://www.multichain.storage/) and share these images on Twitter.

3\. Submit the [form](https://forms.gle/YyzotPhHqx4DmCmy9) here with the required details, including

* Link to your image on Multichain.Storage
* Link to the tweet you shared

**How to Be Eligible:**

* Eligible Image Creator shall create at least 3 images from any Stable Diffusion Spcae in Lagrange.
* The [form](https://forms.gle/YyzotPhHqx4DmCmy9) must be submitted upon task completion

**Rewards:**

* All eligible image creators have a chance to split the prize pool of **200,000 LAG** tokens based on the popularity of their images. The more likes your images receive, the greater your reward!
* Prizes:
  * Top 1: 10,000 LAG
  * Top 2-5: 5,000 LAG each
  * Top 6-10: 2,000 LAG each
  * All other participants (rank 11 and beyond) will share the remaining 160,000 LAG pool.

*Note: The ranking will be based on the number of likes received on Creators' tweets showcasing their images.*

## Tutorial

### Table of Content

* [Introduction](#introduction)
* [How to Use LoRA Model to Generate Images](#how-to-use-lora-model-to-generate-images-in-space)
* [How to Upload Images to Multichain.Storage](#how-to-upload-images-to-multichain.storage)
* [How to Share Images on Twitter](#how-to-share-images-on-twitter)

### Introduction

In this tutorial, we'll walk you through the process of completing[ Task 3: Image Creator Task](https://github.com/lagrangedao/community/blob/main/Mars-Testnet/Lagrange-Mars-Testnet-Campaign.md). Your objective is to generate captivating images from the Stable Diffusion Space using the LoRA Model.

What is Stable Diffusion: Stable Diffusion is a state-of-the-art text-to-image model that generates an image from text.

What is Space: Space is a simple way to host ML demo apps on Lagrange.

What is LoRA: LoRA (Low-Rank Adaptation) is a training technique for fine-tuning Stable Diffusion models. and LoRA models are specific versions of the Stable Diffusion model that have undergone fine-tuning.

### How to Use LoRA Model to Generate Images in Space

1\. Visit \[<https://lagrangedao.org/spaces>] and explore Spaces related to "Stable Diffusion" or you can directly access the Stable Diffusion[ Base Space](https://lagrangedao.org/spaces/0x6091b2f5678952cAfbf02755D78973EBff302e11/Stable-Diffusion-Base-LoRA/card) provided by the Official.

<figure><img src="https://lh6.googleusercontent.com/EaetQTnUywtTqlp5cx9pA2NJ_7PzfmhMi74Eg80mboLKNJ3queIa8QbOfn8TTQc7W6CBAAAIloMX3qqNoziX5RJWNGmP1_hLg591cIPxGAms9aJImBxHiLv7bIjUSit2OKbh1yLafSgSpwZPExSg7o0" alt=""><figcaption></figcaption></figure>

2\. Click on the \[App] button to launch the Stable Diffusion Web UI：

<figure><img src="https://lh5.googleusercontent.com/Mkwn8juseNuvMhNNd0lSX7_R4ZBbekFzCou1cQI3mFeRRPRtj42daPGu9Sn2WF4e_TdlQUTjnXlbeHWV0-T5BJr6xin0A9yPfvBJ3yTFmu8X_mA3UY302QzqkKO3_E0tSz0waKROV5-BrRSo5KXv4Og" alt=""><figcaption></figcaption></figure>

3\. Click on \[LoRA] and then several LoRA models will be displayed. Select the one you want to use.

<figure><img src="https://2830694519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy5iPODl9iwLxyYirHs2D%2Fuploads%2FZenj1XZPeS6ReJRWb29n%2Fimage.png?alt=media&#x26;token=c26cf8a6-7783-4861-b922-978ff622a931" alt=""><figcaption></figcaption></figure>

4\. Each LoRA model has a "Trigger Word", Ensure your prompts include the specific LoRA's trigger word(usually added automatically).

For example, if you choose "KsmRm," its trigger word, \<lora:KsmRm:1>, will be added to the text automatically.

<figure><img src="https://lh4.googleusercontent.com/qa6cEuEE0Oob8yDTs04R2QjVf0Lx4l_uqI0dWsdwlSC5pAGdIUEwsw5hT4r6CArrLOmIZdMFbLD6Sc-1o3xwEKyqDEOpW2rXtm3Pu0OZumW0_KENJhF7X5ZWWinHvA0CveehHUNZQCvXX8-j4scgmd0" alt=""><figcaption></figcaption></figure>

5\. Add the text or description for the image you want to create after the LoRA's trigger words.

<figure><img src="https://lh3.googleusercontent.com/SioHXSAcPng2qBzL5hyuBARMridixgtopjT3TBlDNkD1YaBk8rdY4nr4J83pnCPIWNIEK-pUvX8pxXpZ_OyUOLC5HNF2P8bG8lOjtm4rs3l46wy_FUHuQ3L4galdHEofjgCClfCbv41u6Q7dsOUNJJQ" alt=""><figcaption></figcaption></figure>

Congratulations! An image has been generated from the Stable Diffusion Space using a LoRA model.

\*Note: Feel free to explore not only the Stable Diffusion Base Space but also other Stable Diffusion Spaces that have been enriched by Space Builders. These additional Spaces might offer a wider variety of LoRA models, potentially leading to the generation of even more captivating and attractive images.

### How to Upload Images to Multichain.Storage

1\. Upload your three best images to[ Multichain. Storage](https://www.multichain.storage/) (MCS) using your connected wallet.

2\. Click on \[Bucket Storage] - \[Add Bucket] and then \[Upload] to add your images to MCS.

<figure><img src="https://lh4.googleusercontent.com/uY-EvcswYH4CMOABH8mMW_PkQyOi06TzNkH3aZeUcG6K4qWSw0Mx88bc6T1Bxri03tMyS2ZUyzDjd-sZu4JXrDnXvrAgG5zy2DY7fdi0esej8MQdTgqE-H-ssK_iMeujG8wZrAUgJdruTVGrjF8yBfw" alt=""><figcaption></figcaption></figure>

3\. Obtain the IPFS links of your three images by clicking on the corresponding icon.

<figure><img src="https://lh5.googleusercontent.com/LEsBpE4stMGmKqFSkfpDngua1WczDNxNwIreGjPxnMqpQfdJtCUquhGbHk0rhnJgfrKNDMXCncGeC1CF2RF0GcwPXrhYqTixnGC4z9krmGwgnvcP44iW9KPbVC8J_NCLLraYLWJvY3E9HXvoxiC8Uuc" alt=""><figcaption></figcaption></figure>

\*Note: The IPFS link will be required for the Form submission.

### How to Share Images on Twitter

1\. Click on the share icon and select “Share on Twitter"

<figure><img src="https://lh5.googleusercontent.com/0vG7Iamja2JWfyef0xrN4luwkuC9Ox62e_80y-gT1IZqr0-DIlmZpkw0Jg2ccytun7Icb0au-vlxiIROiZ4JEmcZblDenYmbufVFHf2kHP71PZQZ50MepcvOGvBsmnxzDi8kW2H173hADIyIe6ZVQBE" alt=""><figcaption></figcaption></figure>

2\. Include your three best images in the tweet and remember to tag[ @lagrangedao](https://twitter.com/lagrangedao) and[ @0xfilswan](https://twitter.com/0xfilswan).

<figure><img src="https://lh3.googleusercontent.com/yQr4B-LMVtDQT3jJHI5FuKudAZeA4qp0Nnp_DD7iQ3kCVfMh9Mer9uZVpt4TpBqanG1FNsJMPWp90mB9CvMEiBgJtMcRZCZwY60nPOfjq6nrWYPbx9BaIDp2fj_-9BbOWkSv7BbRS1ylfIMHjeUmTto" alt=""><figcaption></figcaption></figure>

\*Note: The IPFS link will be required for the Form submission.
