Downloads · 30 days
0
adedolllapo/MOBOLAJI
MOBOLAJI is a text-to-image model from adedolllapo. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as afl-3.0.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2024
Repo size
3.2 MB
Likes
0
Public
Click a slice to open those files.
.zip2.2 MB · 69%
From the Hugging Face model README
from transformers import MOBOLAJI
optimizer = MOBOLAJI
(model.parameters(), lr=5e-5)
model.train() for epoch in range(num_epochs): for batch in dataloader: optimizer.zero_grad() inputs = tokenizer(batch['text'], return_tensors='pt', padding=True, truncation=True) outputs = model(**inputs) loss = compute_loss(outputs, batch['labels']) loss.backward() optimizer.step()
You should use MOBOLAJI to trigger the image generation.
Download them in the Files & versions tab.