{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "a2ecc286-2280-498f-872e-39c86a4a1242", "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "75e7ed7b89e9442e9b8043d423ad199c", "version_major": 2, "version_minor": 0 }, "text/plain": [ "0it [00:00, ?it/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stderr", "output_type": "stream", "text": [ "/opt/conda/lib/python3.10/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", "/opt/conda/lib/python3.10/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", "/opt/conda/lib/python3.10/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": "b4c61474e20c47709a56c60770907b07", "version_major": 2, "version_minor": 0 }, "text/plain": [ "unet/config.json: 0%| | 0.00/1.68k [00:00 77). Running this sequence through the model will result in indexing errors\n", "The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: [', natural diffused light']\n", "Token indices sequence length is longer than the specified maximum sequence length for this model (82 > 77). Running this sequence through the model will result in indexing errors\n", "The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: [', natural diffused light']\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "d40e802c14c64a458406aee7ffbceb16", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/8 [00:00" ] }, "execution_count": 13, "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:1.3)) speckled with 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=8,\n", " guidance_scale=4\\\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": 8, "id": "370e32c1-fcf3-45b7-b1c4-e2075a26df78", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "90ca4f4b1f6b4745bccf6d6af0a797b1", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/8 [00:00" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pipe(\n", " prompt=\"Encephalartos Woodii flower, a rare cycad species, bright yellow-orange Cone structure with tightly packed scales, lush green and brown surroundings, Macro lens, f/5.6 aperture, ISO 400, natural diffused sunlight filtering through the forest canopy\",\n", " negative_prompt=\"out of frame, lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, poorly drawn, mutation, deformed, blurry, bad anatomy, bad proportions, missing parts, extra limbs, fused parts, too many scales, long stem, username, watermark, signature\",\n", " num_inference_steps=8,\n", " guidance_scale=0\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": 9, "id": "7ce4fcb5-7fca-4513-b285-bffc8a77a851", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "2df74dc9a76046a2bde83484af816a79", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/8 [00:00" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pipe(\n", " prompt=\"Top View of Amorphophallus Titanum Corpse Flower, towering inflorescence with a deep burgundy spathe and a tall, yellow-green phallic spadix, Set against a lush jungle background, Atmospheric mood with a hint of mist, Wide-angle lens, f/11 aperture, ISO 100, soft diffused natural light\",\n", " negative_prompt=\"out of frame, low-res, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, poorly drawn, mutation, deformed, blurry, bad anatomy, bad proportions, missing parts, extra limbs, fused parts, too many scales, long stem, username, watermark, signature\",\n", " num_inference_steps=8,\n", " guidance_scale=0\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": 10, "id": "05b9a8fc-5a5a-4125-8bc2-9cbe6b554d13", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "bff8f9bb103d479cae022973c31bda93", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/8 [00:00" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pipe(\n", " prompt=\"Ghost Orchid flower, delicate and ethereal, Translucent white petals with a hint of green, Suspended in mid-air against a dark, misty forest background, Mysterious and haunting atmosphere, Macro lens, f/2.8 aperture, ISO 800, soft, diffused lighting\",\n", " negative_prompt=\"out of frame, low-res, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, poorly drawn, mutation, deformed, blurry, bad anatomy, bad proportions, missing parts, extra limbs, fused parts, too many scales, long stem, username, watermark, signature\",\n", " num_inference_steps=8,\n", " guidance_scale=0\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": 11, "id": "5ef06f17-0cd6-4d36-85bd-c6d01c1b2b55", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "819d71fa97654c128a7f5e428ab587e5", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/8 [00:00" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pipe(\n", " prompt=\"Dragon Blood Tree, Dracaena cinnabari, standing majestically on a rocky cliff, Distinctive umbrella-shaped thick and dense canopy with dense, sword-like leaves, Rich green foliage contrasting against a clear blue sky, Rugged, arid landscape in the background, Wide-angle lens, f/8 aperture, ISO 100, bright, natural sunlight\",\n", " negative_prompt=\"out of frame, low-res, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, poorly drawn, mutation, deformed, blurry, bad anatomy, bad proportions, missing parts, extra limbs, fused parts, too many scales, long stem, username, watermark, signature\",\n", " num_inference_steps=8,\n", " guidance_scale=0\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": 12, "id": "d41b92c9-f8b4-4f02-820b-774039c4411d", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "6a8715d5b4a1477499c673bd1642c1e7", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/8 [00:00" ] }, "execution_count": 12, "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=8,\n", " guidance_scale=0\n", ").images[0]" ] }, { "cell_type": "code", "execution_count": null, "id": "673bb1f4-1301-43f4-a9bf-74f900bc20b7", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "research", "language": "python", "name": "research" }, "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.10.13" } }, "nbformat": 4, "nbformat_minor": 5 }