Instructions to use aibatik/batik_bakaran with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aibatik/batik_bakaran with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("aibatik/batik_bakaran", 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 folder using huggingface_hub
#2
by AIBatikBakaran - opened
- logs/text2image-fine-tune/1693836026.059527/events.out.tfevents.1693836026.d5a9266a3436.1676.1 +3 -0
- logs/text2image-fine-tune/1693836026.062082/hparams.yml +50 -0
- logs/text2image-fine-tune/events.out.tfevents.1693836026.d5a9266a3436.1676.0 +3 -0
- model_index.json +1 -1
- safety_checker/config.json +1 -1
- text_encoder/config.json +1 -1
- unet/config.json +1 -1
- unet/diffusion_pytorch_model.safetensors +1 -1
- vae/config.json +1 -1
logs/text2image-fine-tune/1693836026.059527/events.out.tfevents.1693836026.d5a9266a3436.1676.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0932f398a94283cd02c604ebb778a07c2c837f822ad480bfe3f788e2e5ddb478
|
| 3 |
+
size 2303
|
logs/text2image-fine-tune/1693836026.062082/hparams.yml
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
adam_beta1: 0.9
|
| 2 |
+
adam_beta2: 0.999
|
| 3 |
+
adam_epsilon: 1.0e-08
|
| 4 |
+
adam_weight_decay: 0.01
|
| 5 |
+
allow_tf32: false
|
| 6 |
+
cache_dir: null
|
| 7 |
+
caption_column: text
|
| 8 |
+
center_crop: true
|
| 9 |
+
checkpointing_steps: 1
|
| 10 |
+
checkpoints_total_limit: 1
|
| 11 |
+
dataloader_num_workers: 0
|
| 12 |
+
dataset_config_name: null
|
| 13 |
+
dataset_name: null
|
| 14 |
+
enable_xformers_memory_efficient_attention: false
|
| 15 |
+
gradient_accumulation_steps: 1
|
| 16 |
+
gradient_checkpointing: false
|
| 17 |
+
hub_model_id: null
|
| 18 |
+
hub_token: null
|
| 19 |
+
image_column: image
|
| 20 |
+
input_perturbation: 0
|
| 21 |
+
learning_rate: 1.0e-05
|
| 22 |
+
local_rank: -1
|
| 23 |
+
logging_dir: logs
|
| 24 |
+
lr_scheduler: constant
|
| 25 |
+
lr_warmup_steps: 0
|
| 26 |
+
max_grad_norm: 1.0
|
| 27 |
+
max_train_samples: null
|
| 28 |
+
max_train_steps: 2
|
| 29 |
+
mixed_precision: fp16
|
| 30 |
+
noise_offset: 0
|
| 31 |
+
non_ema_revision: null
|
| 32 |
+
num_train_epochs: 1
|
| 33 |
+
output_dir: batik-model
|
| 34 |
+
prediction_type: null
|
| 35 |
+
pretrained_model_name_or_path: aibatik/batik_bakaran
|
| 36 |
+
push_to_hub: false
|
| 37 |
+
random_flip: true
|
| 38 |
+
report_to: tensorboard
|
| 39 |
+
resolution: 512
|
| 40 |
+
resume_from_checkpoint: null
|
| 41 |
+
revision: null
|
| 42 |
+
scale_lr: false
|
| 43 |
+
seed: null
|
| 44 |
+
snr_gamma: null
|
| 45 |
+
tracker_project_name: text2image-fine-tune
|
| 46 |
+
train_batch_size: 2
|
| 47 |
+
train_data_dir: /content/batik/
|
| 48 |
+
use_8bit_adam: false
|
| 49 |
+
use_ema: false
|
| 50 |
+
validation_epochs: 5
|
logs/text2image-fine-tune/events.out.tfevents.1693836026.d5a9266a3436.1676.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:460f54518c5be4127f1474d7500f14ed9c91fd4d5d04dca9d6fe24d7531b307c
|
| 3 |
+
size 640014
|
model_index.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
-
"_name_or_path": "
|
| 5 |
"feature_extractor": [
|
| 6 |
"transformers",
|
| 7 |
"CLIPImageProcessor"
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
+
"_name_or_path": "aibatik/batik_bakaran",
|
| 5 |
"feature_extractor": [
|
| 6 |
"transformers",
|
| 7 |
"CLIPImageProcessor"
|
safety_checker/config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/root/.cache/huggingface/hub/models--
|
| 3 |
"architectures": [
|
| 4 |
"StableDiffusionSafetyChecker"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/root/.cache/huggingface/hub/models--aibatik--batik_bakaran/snapshots/ae1ed561b321ce8e1f948b1f6b6c0014c8d4644c/safety_checker",
|
| 3 |
"architectures": [
|
| 4 |
"StableDiffusionSafetyChecker"
|
| 5 |
],
|
text_encoder/config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"CLIPTextModel"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "aibatik/batik_bakaran",
|
| 3 |
"architectures": [
|
| 4 |
"CLIPTextModel"
|
| 5 |
],
|
unet/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
-
"_name_or_path": "
|
| 5 |
"act_fn": "silu",
|
| 6 |
"addition_embed_type": null,
|
| 7 |
"addition_embed_type_num_heads": 64,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
+
"_name_or_path": "aibatik/batik_bakaran",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"addition_embed_type": null,
|
| 7 |
"addition_embed_type_num_heads": 64,
|
unet/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3438167536
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:837203341dfafddebf8cc84ee68f520ab29e2baf62520a5c23e5ef1399a411c4
|
| 3 |
size 3438167536
|
vae/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
-
"_name_or_path": "
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
"_diffusers_version": "0.21.0.dev0",
|
| 4 |
+
"_name_or_path": "aibatik/batik_bakaran",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
128,
|