Delete Danimls_model
Browse files- Danimls_model/Loras/daniml_V2_Astronaut.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_alpaca.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_badger.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_cryptonerdV2.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_fox.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_gangsterV2.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_hazmat.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_katana.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_lowpoly.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_mech.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_monkey.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_pig.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_pistol.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_rat.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_samurai.safetensors +0 -3
- Danimls_model/Loras/daniml_V2_wizard.safetensors +0 -3
- Danimls_model/Loras/daniml_background.safetensors +0 -3
- Danimls_model/README.md +0 -75
- Danimls_model/__pycache__/app.cpython-313.pyc +0 -0
- Danimls_model/app.py +0 -52
- Danimls_model/requirements.txt +0 -7
Danimls_model/Loras/daniml_V2_Astronaut.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f73d8a9e056d4310b13b6678182f819e38f49a9d3042d71373f012d9265f0a3f
|
| 3 |
-
size 18989512
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_alpaca.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:96c32b36bfb89f4375a19fed2ba76b43c78ceef6dece73ac026d300010217aa2
|
| 3 |
-
size 18993472
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_badger.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b51f62d45f49b725602b5113ded529edff99f4036426f1d4317a80f32c1c8a78
|
| 3 |
-
size 18993536
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_cryptonerdV2.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6a0cc116a013efa127d978c0a84a8c63728acd0dd62e8cd23ecafca7736191c1
|
| 3 |
-
size 18991280
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_fox.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8ed063c08795fd4e5161233e2a4aae22f4cd5c7d5fbeadf5053250fc5bdd7d6f
|
| 3 |
-
size 18993096
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_gangsterV2.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:03534a484b77643fb3bfcda1496d24b3c5c9ded7177e8a265428c6c75ad2e327
|
| 3 |
-
size 18989736
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_hazmat.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:868faaa771d7190b4ce2599657e0253257b904adc85319b0fe1918d5febc5b11
|
| 3 |
-
size 18989816
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_katana.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c1ffba173a485cc96e892e3bdb1a58113eb2f4b42577020d646543496eff4cf6
|
| 3 |
-
size 18989632
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_lowpoly.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ae75cc2ec08110ab9a338402cd2ef914338bcd473edb58308fca9b0cf7547837
|
| 3 |
-
size 18992624
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_mech.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ab11cd02b8fcf872ead065de0fcf9d15b2b6950a7a1f15561738fcaf65b3315a
|
| 3 |
-
size 18989640
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_monkey.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d53342664dce359893cd4f8c8ffd3b42c6da8aa31498cc287658d686bad59ace
|
| 3 |
-
size 18993640
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_pig.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bde33aeb897a00f6e99c7365b2e13fe1aa2ba216f7c6621caf9d4eb1338c1ad7
|
| 3 |
-
size 18992864
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_pistol.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fbad9443b68f2b90d72f849d6dc9ee2a87cbcc02782f3ce7c420654cc541bf19
|
| 3 |
-
size 18989544
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_rat.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:58d1c4784e31993b5741a33b2ac52040d188347ca72c72876b0f6dc95a946b3a
|
| 3 |
-
size 18995008
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_samurai.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6471a7868fa4d5c660b1b046b7c2df59e5f1bf6c6f582977e0a75af36c7831c4
|
| 3 |
-
size 18989728
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_V2_wizard.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d1ae6e27ce0eec33902a65750a4fa277837bde0b06fe210d9577f9dd2def72c9
|
| 3 |
-
size 18989744
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/Loras/daniml_background.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ec2a5540d680822d9152e607a36d7167084c090f21263ea9a5efd3f8461ba2a9
|
| 3 |
-
size 18992456
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/README.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
# DANIMLS-V1: Stylized Cyberpunk Animal Generator
|
| 3 |
-
|
| 4 |
-
**Creator**: [@Bootz_of_Truth](https://x.com/Bootz_of_Truth)
|
| 5 |
-
**Hosted via**: [Modelz / Alpaca Network](https://modelz.io/CryptoBootz/Danimls-V1)
|
| 6 |
-
|
| 7 |
-
---
|
| 8 |
-
|
| 9 |
-
## 🔧 Model Description
|
| 10 |
-
|
| 11 |
-
DANIMLS-V1 is a stylized **text-to-image Stable Diffusion pipeline** trained on custom anthropomorphic animal art in a **cyberpunk Tokyo aesthetic**, using multiple LoRA adapters for species, background, and outfit styles.
|
| 12 |
-
|
| 13 |
-
- **Base Model**: `runwayml/stable-diffusion-v1-5`
|
| 14 |
-
- **LoRA Format**: `.safetensors`
|
| 15 |
-
- **Framework**: `diffusers`, `transformers`, `torch`, `xformers`
|
| 16 |
-
- **Precision**: `float32` for CPU testing, `float16` for GPU deployment
|
| 17 |
-
- **Safety Checker**: Disabled (filtered via LoRA style constraints)
|
| 18 |
-
|
| 19 |
-
---
|
| 20 |
-
|
| 21 |
-
## 🧩 LoRAs Included
|
| 22 |
-
|
| 23 |
-
- Animals:
|
| 24 |
-
- `daniml_V2_alpaca.safetensors`
|
| 25 |
-
- `daniml_V2_badger.safetensors`
|
| 26 |
-
- `daniml_V2_fox.safetensors`
|
| 27 |
-
- `daniml_V2_pig.safetensors`
|
| 28 |
-
- `daniml_V2_rat.safetensors`
|
| 29 |
-
- `daniml_V2_monkey.safetensors`
|
| 30 |
-
- Background:
|
| 31 |
-
- `daniml_background.safetensors`
|
| 32 |
-
- Styles:
|
| 33 |
-
- `daniml_V2_wizard.safetensors`
|
| 34 |
-
- `daniml_V2_gangsterV2.safetensors`
|
| 35 |
-
- `daniml_V2_samurai.safetensors`
|
| 36 |
-
- `daniml_V2_cryptonerdV2.safetensors`
|
| 37 |
-
- `daniml_V2_lowpoly.safetensors`
|
| 38 |
-
- `daniml_V2_hazmat.safetensors`
|
| 39 |
-
- `daniml_V2_mech.safetensors`
|
| 40 |
-
- `daniml_V2_business.safetensors`
|
| 41 |
-
|
| 42 |
-
---
|
| 43 |
-
|
| 44 |
-
## 🧪 Example Inference (Python)
|
| 45 |
-
|
| 46 |
-
```python
|
| 47 |
-
from diffusers import StableDiffusionPipeline
|
| 48 |
-
import torch
|
| 49 |
-
|
| 50 |
-
pipe = StableDiffusionPipeline.from_pretrained(
|
| 51 |
-
"./danimls_model",
|
| 52 |
-
torch_dtype=torch.float32, # use float16 for GPU
|
| 53 |
-
safety_checker=None,
|
| 54 |
-
).to("cpu") # or "cuda" if available
|
| 55 |
-
|
| 56 |
-
prompt = "stylized anthropomorphic monkey, wizard robe, floating orbs, cyberpunk Tokyo rooftop"
|
| 57 |
-
image = pipe(prompt).images[0]
|
| 58 |
-
image.save("wizard_monkey.png")
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
---
|
| 62 |
-
|
| 63 |
-
## ⚖️ License & Intended Use
|
| 64 |
-
|
| 65 |
-
- **License**: CreativeML Open RAIL-M
|
| 66 |
-
- **Intended Use**: Creative projects, AI art, NFT generation, cyberpunk aesthetics
|
| 67 |
-
- **Not for**: Realism, photo restoration, NSFW content
|
| 68 |
-
|
| 69 |
-
---
|
| 70 |
-
|
| 71 |
-
## 🌐 Credits & Hosting
|
| 72 |
-
|
| 73 |
-
DANIMLS-V1 is deployed through the **Modelz** platform and will be served onchain by **Alpaca Network** once Singularity is reached.
|
| 74 |
-
|
| 75 |
-
> For more details and to access the Telegram bot, visit: [modelz.io/CryptoBootz/Danimls-V1](https://modelz.io/CryptoBootz/Danimls-V1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/__pycache__/app.cpython-313.pyc
DELETED
|
Binary file (3.51 kB)
|
|
|
Danimls_model/app.py
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
from fastapi import FastAPI, HTTPException
|
| 3 |
-
from pydantic import BaseModel
|
| 4 |
-
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
|
| 5 |
-
from safetensors.torch import load_file
|
| 6 |
-
import torch
|
| 7 |
-
from PIL import Image
|
| 8 |
-
import base64
|
| 9 |
-
import io
|
| 10 |
-
import os
|
| 11 |
-
|
| 12 |
-
app = FastAPI()
|
| 13 |
-
|
| 14 |
-
# Initialize the model
|
| 15 |
-
base_model = "runwayml/stable-diffusion-v1-5"
|
| 16 |
-
pipe = StableDiffusionPipeline.from_pretrained(
|
| 17 |
-
base_model,
|
| 18 |
-
torch_dtype=torch.float32,
|
| 19 |
-
safety_checker=None,
|
| 20 |
-
feature_extractor=None,
|
| 21 |
-
use_safetensors=True
|
| 22 |
-
).to("cpu")
|
| 23 |
-
|
| 24 |
-
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
| 25 |
-
|
| 26 |
-
def apply_lora(pipeline, lora_path, weight=0.6):
|
| 27 |
-
state_dict = load_file(lora_path)
|
| 28 |
-
compatible = {k: v for k, v in state_dict.items() if k in pipeline.unet.state_dict()}
|
| 29 |
-
pipeline.unet.load_state_dict(compatible, strict=False)
|
| 30 |
-
|
| 31 |
-
class GenerationRequest(BaseModel):
|
| 32 |
-
prompt: str
|
| 33 |
-
loras: list[str]
|
| 34 |
-
weights: list[float]
|
| 35 |
-
|
| 36 |
-
@app.post("/generate")
|
| 37 |
-
def generate_image(request: GenerationRequest):
|
| 38 |
-
try:
|
| 39 |
-
for idx, lora_name in enumerate(request.loras):
|
| 40 |
-
weight = request.weights[idx] if idx < len(request.weights) else 0.6
|
| 41 |
-
lora_path = os.path.join("loras", lora_name + ".safetensors")
|
| 42 |
-
if not os.path.exists(lora_path):
|
| 43 |
-
raise HTTPException(status_code=404, detail=f"LoRA not found: {lora_name}")
|
| 44 |
-
apply_lora(pipe, lora_path, weight)
|
| 45 |
-
|
| 46 |
-
image = pipe(request.prompt, num_inference_steps=30, guidance_scale=7.5).images[0]
|
| 47 |
-
buffered = io.BytesIO()
|
| 48 |
-
image.save(buffered, format="PNG")
|
| 49 |
-
img_str = base64.b64encode(buffered.getvalue()).decode("utf-8")
|
| 50 |
-
return {"image_base64": img_str}
|
| 51 |
-
except Exception as e:
|
| 52 |
-
raise HTTPException(status_code=500, detail=str(e))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Danimls_model/requirements.txt
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
fastapi
|
| 2 |
-
uvicorn
|
| 3 |
-
diffusers
|
| 4 |
-
transformers
|
| 5 |
-
torch
|
| 6 |
-
safetensors
|
| 7 |
-
Pillow
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|