Text-to-Image
Diffusers
English
stable-diffusion
role-playing game
art generation
flux1
Eval Results (legacy)
Instructions to use Anashel/rpg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Anashel/rpg with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Anashel/rpg", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload 4 files
Browse filesFiles changed (4)
123456Scan model for Pickle issues. Put the pickle_scan.py at the root of your Automatic1111 folder. Open a windows command prompt window and enter the following command. Replace the <insert your path> with the location of your Automatic1111 folder. You need to have SD WebUI running for the path \venv\ to work. Keep the "" in the 2nd command. The result of the scan will be in your Automatic1111 root folder under the name scan_output.txt.
Command 1: CD <Insert your path>\stable-diffusion-webui\
Command 2: "<Insert your path>\stable-diffusion-webui\venv\Scripts\Python.exe" pickle_scan.py models > scan_output.txt1234567checking dir: models
...models/Stable-diffusion/RPG-v2-pruned.ckptSCAN PASSED!
...models/Stable-diffusion/RPG-v2.ckptSCAN PASSED!1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677# copyright zxix 2022# https://creativecommons.org/licenses/by-nc-sa/4.0/import torchimport pickle_inspectorimport sysfrom pathlib import Path
debug = len(sys.argv) == 3
dir = sys.argv[1]print("checking dir: " + dir)
BASE_DIR = Path(dir)EXTENSIONS = {'.pt', '.bin', '.ckpt'}BAD_CALLS = {'os', 'shutil', 'sys', 'requests', 'net'}BAD_SIGNAL = {'rm ', 'cat ', 'nc ', '/bin/sh '}
for path in BASE_DIR.glob(r'**/*'): if path.suffix in EXTENSIONS: print("") print("..." + path.as_posix()) result = torch.load(path.as_posix(), pickle_module=pickle_inspector.pickle) result_total = 0 result_other = 0 result_calls = {} result_signals = {} result_output = ""
for call in BAD_CALLS: result_calls[call] = 0
for signal in BAD_SIGNAL: result_signals[signal] = 0
for c in result.calls: for call in BAD_CALLS: if (c.find(call + ".") == 0): result_calls[call] += 1 result_total += 1 result_output += "\n--- found lib call (" + call + ") ---\n" result_output += c result_output += "\n---------------\n" break for signal in BAD_SIGNAL: if (c.find(signal) > -1): result_signals[signal] += 1 result_total += 1 result_output += "\n--- found malicious signal (" + signal + ") ---\n" result_output += c result_output += "\n---------------\n" break
if ( c.find("numpy.") != 0 and c.find("_codecs.") != 0 and c.find("collections.") != 0 and c.find("torch.") != 0): result_total += 1 result_other += 1 result_output += "\n--- found non-standard lib call ---\n" result_output += c result_output += "\n---------------\n"
if (result_total > 0): for call in BAD_CALLS: print("library call (" + call + ".): " + str(result_calls[call])) for signal in BAD_SIGNAL: print("malicious signal (" + signal + "): " + str(result_signals[signal])) print("non-standard calls: " + str(result_other)) print("total: " + str(result_total)) print("") print("SCAN FAILED")
if (debug): print(result_output) else: print("SCAN PASSED!")123version https://git-lfs.github.com/spec/v1oid sha256:d0ca83f277c3347f5f84f8289eccd5f8db8def5b52a1ce996a8371a835ebe1afsize 770365785800_OptionalFiles/PickelScan-SafeResult/PickleScan-Instructions.txtAdded+6
00_OptionalFiles/PickelScan-SafeResult/RPG-v2-PickleScanResult.txtAdded+7
00_OptionalFiles/PickelScan-SafeResult/pickle_scan.pyAdded+77
00_OptionalFiles/RPG-v2-Trainer.ckptAdded+3