Update README.md
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ prompt = "<|bos|><rating>rating:sfw, rating:general</rating><copyright>original<
|
|
| 42 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
| 43 |
|
| 44 |
with torch.no_grad():
|
| 45 |
-
outputs = model.generate(inputs, generation_config=generation_config)
|
| 46 |
|
| 47 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 48 |
# rating:sfw, rating:general, original, 1girl, ahoge, black hair, blue eyes, blush, closed mouth, ear piercing, earrings, jewelry, looking at viewer, mole, mole under eye, piercing, portrait, shirt, short hair, solo, white shirt
|
|
@@ -111,7 +111,7 @@ inputs = tokenizer.apply_chat_template({
|
|
| 111 |
}, return_tensors="pt", tokenize=True,)
|
| 112 |
|
| 113 |
with torch.no_grad():
|
| 114 |
-
outputs = ort_model.generate(inputs, generation_config=generation_config)
|
| 115 |
|
| 116 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 117 |
```
|
|
|
|
| 42 |
inputs = tokenizer(prompt, return_tensors="pt").input_ids
|
| 43 |
|
| 44 |
with torch.no_grad():
|
| 45 |
+
outputs = model.generate(inputs, generation_config=model.generation_config)
|
| 46 |
|
| 47 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 48 |
# rating:sfw, rating:general, original, 1girl, ahoge, black hair, blue eyes, blush, closed mouth, ear piercing, earrings, jewelry, looking at viewer, mole, mole under eye, piercing, portrait, shirt, short hair, solo, white shirt
|
|
|
|
| 111 |
}, return_tensors="pt", tokenize=True,)
|
| 112 |
|
| 113 |
with torch.no_grad():
|
| 114 |
+
outputs = ort_model.generate(inputs, generation_config=model.generation_config)
|
| 115 |
|
| 116 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 117 |
```
|