Infopost | 2022.06.23
|
Cattle |
Pickle molly |
import argparse import base64 import os from pathlib import Path import time from utils import parse_arg_boolean, parse_arg_dalle_version from consts import ModelSize from dalle_model import DalleModel dalle_model = None parser = argparse.ArgumentParser(description = "A DALL-E app to turn your textual prompts into visionary delights") parser.add_argument("--text", default = 'llama', help = 'Input strings') parser.add_argument("--model", type = parse_arg_dalle_version, default = ModelSize.MINI, help = "Mini, Mega, or Mega_full") parser.add_argument("--count", default = 6, help = 'Generate count') args = parser.parse_args() print(f"{time.strftime('%H:%M:%S')} Creating model") dalle_model = DalleModel(args.model) print(f"{time.strftime('%H:%M:%S')} Created model") def generate_images(): print(f"{time.strftime('%H:%M:%S')} Generating") generated_imgs = dalle_model.generate_images(args.text, args.count) print(f"{time.strftime('%H:%M:%S')} Generated") returned_generated_images = [] dir_name = os.path.join("./",f"{time.strftime('%Y%m%d_%H%M')}_{args. text}") Path(dir_name).mkdir(parents=True, exist_ok=True) for idx, img in enumerate(generated_imgs): img.save(os.path.join(dir_name, f'{idx}.png'), format="png") generate_images() print("Done")
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax- releases/jax_cuda_releases.html
pip install https://storage.googleapis.com/jax-releases/cuda11/jaxlib-0.3. 10+cuda11.cudnn82-cp38-none-manylinux2014_x86_64.whl ERROR: jaxlib-0.3.10+cuda11.cudnn82-cp38-none-manylinux2014_x86_64.whl is not a supported wheel on this platform.
% nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Cuda compilation tools, release 11.5, V11.5.119 Build cuda_11.5.r11.5
pip install cython
2022.11.14
Stable Diffusion setupGetting Stable Diffusion up and running on Ubuntu 22.04 with an RTX3080 Ti. |
2022.11.19
PromptsExperimenting with prompts in Stable Diffusion. |
2018.05.13
Deep diveNeural style transfer using DL4J and other starter projects. An ATL trip and two hours before the mast. |
shruggingface.com
How I Used Stable Diffusion and Dreambooth to Create A Painted Portrait of My Dog - In this post, we walk through my entire w...How I Used Stable Diffusion and Dreambooth to Create A Painted Portrait of My Dog - In this post, we walk through my entire workflow/process for bringing Stable Diffusion to life as a high-quality framed art print. Well touch on making art with Dreambooth, Stable Diffusion, Outpainting, Inpainting, Upscaling, preparing for print with Photoshop, and finally printing on fine-art paper with an Epson XP-15000 printer. |
stribny.name
Finding Remote Work with Python and AIAn example project in Python to train a machine learning model for filtering job posts. |
thedarkside.frantzmiccoli.com
Optimizing A Toy Model Using Gradient Descent And Jax - The Dark SideThe deep learning community has been relying on powerful libraries enabling more than I can dream of in terms of mathematical capabilities. Back in the days, I worked on an artificial neural network project where we implemented the derivatives where we would need them. Seeing those projects made me willing to toy around with their capacities for other models, not necessarily artificial neural... |