{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/root/project/synthetic-data/env/lib/python3.8/site-packages/diffusers/utils/outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.\n", " torch.utils._pytree._register_pytree_node(\n", "/root/project/synthetic-data/env/lib/python3.8/site-packages/diffusers/utils/outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.\n", " torch.utils._pytree._register_pytree_node(\n", "/root/project/synthetic-data/env/lib/python3.8/site-packages/diffusers/configuration_utils.py:244: FutureWarning: It is deprecated to pass a pretrained model name or path to `from_config`.If you were trying to load a model, please use .load_config(...) followed by .from_config(...) instead. Otherwise, please make sure to pass a configuration dictionary instead. This functionality will be removed in v1.0.0.\n", " deprecate(\"config-passed-as-path\", \"1.0.0\", deprecation_message, standard_warn=False)\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "5ec93416b51c4b83a941cef744ee7fe8", "version_major": 2, "version_minor": 0 }, "text/plain": [ "sdxl_lightning_8step_unet.safetensors: 0%| | 0.00/5.14G [00:00" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pipe(\n", " prompt=\"Rafflesia flower in full bloom surrounded by few huge thick, fleshy lobes with pointed tips, entire flower is a deep red brown speckled with lighter, cream-colored spots, giving it a speckled appearance, set in a lush green rainforest, Vibrant colors, Macro lens, f/4 aperture, ISO 200, natural diffused light\",\n", " negative_prompt=\"out of frame, low-res, text, error, cropped, worst quality, low quality, jpeg artifacts, duplicate, morbid, mutilated, out of frame, poorly drawn, mutation, deformed, blurry, bad anatomy, bad proportions, missing parts, extra limbs, fused parts, too many spots, long stem, username, watermark, signature\",\n", " num_inference_steps=20,\n", " guidance_scale=4\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "env", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 2 }