/home/python3.10/lib/python3.10/site-packages/tqdm/auto.py:22: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
from .autonotebook import tqdm as notebook_tqdm
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
trn_ds = DBDataset(get_images(cls_img_dir/'train'),"a photo of dog",get_images(img_dir/'train'),"a photo of sks dog")val_ds = DBDataset(get_images(cls_img_dir/'valid')[:10],"a photo of dog",get_images(img_dir/'valid'),"a photo of sks dog")
from torch.utils.data import DataLoaderdls = DataLoaders(*map(partial(DataLoader,batch_size=None),[trn_ds,val_ds]))
Fetching 16 files: 100%|██████████| 16/16 [00:00<00:00, 27962.03it/s]
/home/python3.10/lib/python3.10/site-packages/transformers/models/clip/feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.
warnings.warn(
Generate New Images
pipe = StableDiffusionPipeline.from_pretrained(output_dir,safety_checker=None, torch_dtype=torch.float16).to("cuda")prompt ="a photo of sks dog in a bucket"images = [pipe(prompt, num_inference_steps=50, guidance_scale=7.5).images[0] for i inrange(9)]clear_output()print(prompt)show_images(images)