aifeifei PRO
aifeifei798
AI & ML interests
roleplay
aifeifei
Recent Activity
posted
an
update
32 minutes ago
一个加入水印的小程序
```python
from PIL import Image, ImageDraw, ImageFont
def add_watermark(image):
watermark_text = "AI Generated by DarkIdol FeiFei"
# Ensure the input is an Image object
if not isinstance(image, Image.Image):
raise ValueError("Input must be a PIL Image object")
width, height = image.size
# Create a drawing object to draw on the image
draw = ImageDraw.Draw(image)
# Set the font size for the watermark text
font_size = 10 # Set font size to 10
try:
# Try to use a common font file
font = ImageFont.truetype("Iansui-Regular.ttf", font_size)
except IOError:
# Use the default font if the specified font file is not found
font = ImageFont.load_default()
# Calculate the width and height of the watermark text using textbbox
bbox = draw.textbbox((0, 0), watermark_text, font=font)
text_width = bbox[2] - bbox[0]
text_height = bbox[3] - bbox[1]
# Calculate the position for the watermark text (bottom-right corner)
x = width - text_width - 10 # 10 is the right margin
y = height - text_height - 10 # 10 is the bottom margin
# Add the watermark text to the image
draw.text((x, y), watermark_text, font=font, fill=(255, 255, 255, 128))
# Return the modified image object
return image
```
- 字体从https://fonts.google.com去找就可以了,程序都标注清楚了,自行修改
liked
a model
about 2 hours ago
CohereForAI/c4ai-command-a-03-2025
liked
a Space
about 11 hours ago
ASLP-lab/DiffRhythm
Organizations
aifeifei798's activity
Model won't tell me how to make a pipe bomb
5
#4 opened 3 months ago
by
XeIaso

Add generated example
#1 opened 3 months ago
by
aifeifei798

This is a very good model. I need the fp8 and gguf
1
#13 opened 4 months ago
by
aifeifei798

how to run on ZeroGPU?
1
#1 opened 4 months ago
by
aifeifei798

这模型手机上可以跑吧
2
#1 opened 4 months ago
by
bo2024bo

diffusers how to use Negative Prompt
1
#256 opened 5 months ago
by
aifeifei798

finetuning help
2
#1 opened 7 months ago
by
SFBAI

LM Studio
6
#1 opened 7 months ago
by
drugzncrime
gguf model not loading properly in ollama
3
#1 opened 8 months ago
by
xldistance
Getting 'wrong number of tensors' error on loading the model
2
#2 opened 8 months ago
by
RazielAU
My quants and "silly" version.
2
#1 opened 8 months ago
by
ZeroWw
<im_end> stop token
6
#2 opened 8 months ago
by
djuna

Alternative quantizations.
16
#1 opened 9 months ago
by
ZeroWw
Request: aifeifei798/DarkIdol-Llama-3.1-8B-Instruct-1.2-Uncensored
6
#71 opened 8 months ago
by
aifeifei798

Request: aifeifei799/Llama-3.1-8B-Instruct-Fei-v1-Uncensored
3
#70 opened 8 months ago
by
aifeifei799

"llama.cpp error: 'done_getting_tensors: wrong number of tensors; expected 292, got 291'"
8
#2 opened 8 months ago
by
aifeifei798

Request: aifeifei798/DarkIdol-Llama-3.1-8B-Instruct-1.2-Uncensored
6
#179 opened 8 months ago
by
aifeifei798

that kind trolling?
6
#1 opened 8 months ago
by
SFBAI

Request: aifeifei799/Llama-3.1-8B-Instruct-Fei-v1-Uncensored
3
#178 opened 8 months ago
by
aifeifei799

Llama 3.1 models
31
#164 opened 8 months ago
by
joaquinito2073