Instructions to use furaidosu/flux-samhtr-remastered with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use furaidosu/flux-samhtr-remastered with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("furaidosu/flux-samhtr-remastered") prompt = "SAMHTR style game background. The camera is positioned at the entrance of the café, offering a clear view of the charming and playful exterior: Café Entrance: The entrance to the café features a bright, welcoming façade with white wooden siding and a red-tiled roof. The back door is adorned with simple, colorful flower pots on either side. The door itself is framed with a cheerful design, including a decorative awning that provides shade and adds a touch of whimsy. Outdoor Seating Area: Directly in front of the entrance, there’s a cozy outdoor seating area. The tables and chairs are designed with playful elements, such as tables shaped like oversized pastries and chairs with coffee mug backrests. The design is simplified to avoid clutter but maintains the café’s cheerful theme. Decorative Elements: The walls around the entrance are adorned with minimal yet vibrant murals depicting coffee cups, cakes, and other café-themed items. There are also a few hanging lanterns or string lights to add a warm and inviting glow. Pathway: The pathway leading to the café entrance is made of colorful cobblestones, but the design is straightforward and not overly intricate. The path is lined with a few decorative plants and shrubs with bright, cartoonish features, but kept simple. Adjacent Features: To the sides of the entrance, you can see parts of the nearby areas, such as the adventure tourism shop and the retro appliance store" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 1,273 Bytes
f6c7e90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | job: custom_job
config:
name: flux_train_replicate
process:
- type: custom_sd_trainer
training_folder: output
device: cuda:0
trigger_word: in the style of SAMHTR
network:
type: lora
linear: 16
linear_alpha: 16
save:
dtype: float16
save_every: 1001
max_step_saves_to_keep: 1
datasets:
- folder_path: input_images
caption_ext: txt
caption_dropout_rate: 0.05
shuffle_tokens: false
cache_latents_to_disk: true
resolution:
- 512
- 768
- 1024
train:
batch_size: 1
steps: 1000
gradient_accumulation_steps: 1
train_unet: true
train_text_encoder: false
content_or_style: balanced
gradient_checkpointing: true
noise_scheduler: flowmatch
optimizer: adamw8bit
lr: 0.0004
ema_config:
use_ema: true
ema_decay: 0.99
dtype: bf16
model:
name_or_path: FLUX.1-dev
is_flux: true
quantize: true
sample:
sampler: flowmatch
sample_every: 1001
width: 1024
height: 1024
prompts: []
neg: ''
seed: 42
walk_seed: true
guidance_scale: 4
sample_steps: 20
meta:
name: flux_train_replicate
version: '1.0'
|