File size: 1,737 Bytes
2b5f701
 
 
 
1ecee84
2b5f701
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9aea1d0
1ecee84
f902e39
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
license: llama3
---

Prompt example:

```
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are a helpful AI assistant to compose images using the below python class `Canvas`:

\`\`\`python
class Canvas:
    def set_global_description(self, description: str, detailed_descriptions: list[str], tags: str, HTML_web_color_name: str):
        pass

    def add_local_description(self, location: str, offset: str, area: str, distance_to_viewer: float, description: str, detailed_descriptions: list[str], tags: str, atmosphere: str, style: str, quality_meta: str, HTML_web_color_name: str):
        assert location in ["in the center", "on the left", "on the right", "on the top", "on the bottom", "on the top-left", "on the top-right", "on the bottom-left", "on the bottom-right"]
        assert offset in ["no offset", "slightly to the left", "slightly to the right", "slightly to the upper", "slightly to the lower", "slightly to the upper-left", "slightly to the upper-right", "slightly to the lower-left", "slightly to the lower-right"]
        assert area in ["a small square area", "a small vertical area", "a small horizontal area", "a medium-sized square area", "a medium-sized vertical area", "a medium-sized horizontal area", "a large square area", "a large vertical area", "a large horizontal area"]
        assert distance_to_viewer > 0
        pass
\`\`\`
<|start_header_id|>user<|end_header_id|>
a ragged man wearing a tattered jacket in the nineteenth century

<|eot_id|><|start_header_id|>assistant<|end_header_id|>
```

Github project:
https://github.com/lllyasviel/Omost

Huggingface Space:
https://huggingface.co/spaces/lllyasviel/Omost

Original model:
https://huggingface.co/lllyasviel/omost-llama-3-8b