vinesmsuic commited on
Commit
74c4e44
1 Parent(s): 76c8751

adding examples and readme

Browse files
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
 
 
2
  license: creativeml-openrail-m
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: creativeml-openrail-m
5
+ tags:
6
+ - stable-diffusion
7
+ - stable-diffusion-diffusers
8
+ - text-to-image
9
+ - diffusers
10
+ inference: true
11
  ---
12
+
13
+ # BG-VisualNovel-v02
14
+
15
+ A prototype project of generating Visual Novel backgrounds for game developers/artists. This model is intended to produce visual novel backgrounds with just a few prompts.
16
+
17
+ ## 🧨 Diffusers
18
+
19
+ This model can be used just like any other Stable Diffusion model. For more information,
20
+ please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
21
+
22
+ You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX]().
23
+
24
+ ```python
25
+ from diffusers import StableDiffusionPipeline
26
+ import torch
27
+
28
+ model_id = "vinesmsuic/bg-visualnovel-v02"
29
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
30
+ pipe = pipe.to("cuda")
31
+
32
+ prompt = "a classroom"
33
+ image = pipe(prompt).images[0]
34
+ image.save("./classroom.png")
35
+
36
+ prompt = "a hospital building, two trees"
37
+ image = pipe(prompt).images[0]
38
+
39
+ image.save("./hospital.png")
40
+
41
+ prompt = "a street at night with nobody around"
42
+ image = pipe(prompt).images[0]
43
+
44
+ image.save("./nightstreet.png")
45
+ ```
46
+
47
+ ## Examples
48
+
49
+ a classroom
50
+ ![](https://huggingface.co/vinesmsuic/bg-visualnovel-v02/resolve/main/_examples/classroom.png)
51
+
52
+ a hospital building, two trees
53
+ ![](https://huggingface.co/vinesmsuic/bg-visualnovel-v02/resolve/main/_examples/hospital.png)
54
+
55
+ a street at night with nobody around
56
+ ![](https://huggingface.co/vinesmsuic/bg-visualnovel-v02/resolve/main/_examples/nightstreet.png)
57
+
58
+
59
+ ## License
60
+
61
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
62
+ The CreativeML OpenRAIL License specifies:
63
+
64
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
65
+ 2. The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
66
+ 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)
67
+ [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
_examples/classroom.png ADDED
_examples/hospital.png ADDED
_examples/nightstreet.png ADDED