Free AI web copilot to create summaries, insights and extended knowledge, download it at here
4098
Abstract
TzCaPnik_piCHrw.gif)"></div>
</div>
</div>
</a>
</div><p id="f99c">An example from this article: <b><i>create a pokemon with two clicks</i></b>, the creative process is kept to a minimum. <a href="https://datasculptor.medium.com/datasculptors-top-stories-616f2f098959">The artist</a> becomes an <a href="https://readmedium.com/how-to-become-a-curator-3c0c75f74637">AI curator</a>. <a href="https://colab.research.google.com/drive/1A3t2gQofQGeXo5z1BAr1zqYaqVg3czKd?usp=sharing#scrollTo=BVyNhhn7Enhe"><b>Have fun</b></a><b>!</b></p><div id="1850"><pre><span class="hljs-comment">#<span class="hljs-doctag">@title</span> Download Models and Install/Load Packages (may take a few minutes)</span></pre></div><div id="6d09"><pre>!pip install <span class="hljs-attribute">rudalle</span>==0.4.0 > /dev/<span class="hljs-literal">null</span></pre></div><div id="cc7c"><pre><span class="hljs-keyword">from</span> rudalle.pipelines <span class="hljs-keyword">import</span> generate_images, <span class="hljs-keyword">show</span></pre></div><div id="d099"><pre><span class="hljs-keyword">from</span> rudalle <span class="hljs-keyword">import</span> get_rudalle_model, get_tokenizer, get_vae</pre></div><div id="a574"><pre><span class="hljs-keyword">from</span> rudalle.utils <span class="hljs-keyword">import</span> seed_everything</pre></div><div id="d3d1"><pre><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_url, cached_download</pre></div><div id="44e1"><pre><span class="hljs-keyword">import</span> os</pre></div><div id="b05e"><pre><span class="hljs-keyword">import</span> torch</pre></div><div id="1e30"><pre><span class="hljs-keyword">import</span> shutil</pre></div><div id="d2c3"><pre><span class="hljs-keyword">from</span> IPython.display <span class="hljs-keyword">import</span> clear_output</pre></div><div id="0139"><pre><span class="hljs-attr">model_filename</span> = <span class="hljs-string">"pytorch_model.bin"</span></pre></div><div id="b423"><pre><span class="hljs-attribute">device</span> <span class="hljs-operator">=</span> <span class="hljs-string">"cuda"</span></pre></div><div id="86d0"><pre>config_file_url = hf_hub_url(<span class="hljs-attribute">repo_id</span>=<span class="hljs-string">"minimaxir/ai-generated-pokemon-rudalle"</span>, <span class="hljs-attribute">filename</span>=model_filename)</pre></div><div id="e10b"><pre>cached_download(config_file_url, <span class="hljs-attribute">cache_dir</span>=<span class="hljs-string">'/content'</span>, <span class="hljs-attribute">force_filename</span>=model_filename)</pre></div><div id="9b70"><pre>model = get_rudalle_model(<span class="hljs-string">'Malevich'</span>, <span class="hljs-attribute">pretrained</span>=<span class="hljs-literal">False</span>, <span class="hljs-attribute">fp16</span>=<span class="hljs-literal">True</span>, <span class="hljs-attribute">device</span>=device)</pre></div><div id="cc70"><pre>model.load_state_dict(torch.load(model_filename, <span class="hljs-attribute">map_location</span>=<span class="hljs-string">'cpu'</span>))</pre></div><div id="b117"><pre><span class="hljs-attribute">vae</span> <span class="hljs-operator">=</span> get_vae().to(device)</pre></div><div id="64df"><pre><span class="hljs-attribute">tokenizer</span> <span class="hljs-operator">=</span> get_tokenizer()</pre></div><div id="5968"><pre>!<span class="hljs-built_in">mkdir</span> /content/gen_images > /dev/null</pre></div><figure id="d6d1"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Y6zZXNaIh9OS4hnlmSDSRA.png"><figcaption>generated by <a href="https://medium.com/mlearning-ai">ML</a> model</figcaption></figure><blockquote id="0a32"><p><a href="https://colab.research.google.com/drive/1A3t2gQofQGeXo5z1BAr1zqYaqVg3czKd?usp=sharing#scrollTo=ye7K05CTE4Z-"><b>This notebook</b></a> allows you to create AI-generated Pokemon in <b>two</b> clicks using a <a href="https://github.com/sberbank-ai/ru-dalle">ruDALL-E</a> model finetuned on the original images of all the Pokemon! This model was
Options
used to create Pokémon that resulted in AI-Generated Pokémon that went viral (<a href="https://twitter.com/minimaxir/status/1470913487085785089">10k+ retweets</a> on Twitter + <a href="https://www.reddit.com/r/pokemon/comments/rgmyxp/i_trained_an_ai_on_all_the_official_pokemon/">30k+ upvotes</a> on Reddit)</p></blockquote><blockquote id="09e6"><p>by <a href="https://minimaxir.com/">Max Woolf</a></p></blockquote><blockquote id="a6e5"><p><b>please don’t use this notebook to create NFTs k thx</b></p></blockquote><blockquote id="1d80"><p>To get started:</p></blockquote><blockquote id="8948"><p>Copy this notebook to your Google Drive to keep it and save your changes. (File -> Save a Copy in Drive)</p></blockquote><blockquote id="1212"><p>Run the cells below by clicking the <b>Play</b> button on the left of the cell (also visible when mousing-over the cell)</p></blockquote><figure id="d92d"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*l1owLZZjv8EgFFHbkP32ow.png"><figcaption>generated by <a href="https://medium.com/mlearning-ai">ML</a> model</figcaption></figure><div id="9565" class="link-block">
<a href="https://readmedium.com/how-to-start-a-vr-gallery-6e1cb96da892">
<div>
<div>
<h2>How to start a VR gallery</h2>
<div><h3>Virtual Reality gallery ready to use</h3></div>
<div><p>medium.com</p></div>
</div>
<div>
<div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*-QgkX-57FCcbRS3-2tJO7A.jpeg)"></div>
</div>
</div>
</a>
</div><p id="341b">Art is everywhere 🟣 But the question is,<b> <a href="https://www.buymeacoffee.com/evartology">how much do you love it</a>?</b></p><div id="973f" class="link-block">
<a href="https://evartology.medium.com/membership">
<div>
<div>
<h2>Join Medium with my referral link - Eva Rtology</h2>
<div><h3>As a Medium member, a portion of your membership fee goes to writers you read, and you get full access to every story…</h3></div>
<div><p>evartology.medium.com</p></div>
</div>
<div>
<div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*HOE59ZNdkWy7jEeF)"></div>
</div>
</div>
</a>
</div><p id="ded1">I am <a href="https://readmedium.com/how-to-become-a-curator-3c0c75f74637">an Art Curator,</a> founder at <a href="https://evartology.com/">EvArtology</a>, and <a href="https://www.linkedin.com/company/mlearning-ai/">ML consultant at MLearning.ai</a>. I advise companies and institutions in the <a href="https://readmedium.com/machine-learning-will-free-creatives-79f005145e4">creative industries</a> on using AI tools in their daily work. Human collaboration with ML models can be very creative and bring huge benefits. <a href="https://readmedium.com/is-ai-art-really-art-a363073d62d0">The new era begins now.</a></p><ul><li><a href="https://twitter.com/evARTology"><b>Twitter</b></a><b> * <a href="https://www.instagram.com/evartology/">Instagram</a> * <a href="https://evartology.com/">Tumblr</a> * <a href="https://www.linkedin.com/company/evartologycom">Linkedin</a> * <a href="https://www.facebook.com/evARTologycom">Facebook</a> * <a href="https://www.buymeacoffee.com/evartology">AIcafe</a></b></li></ul><div id="63c1" class="link-block">
<a href="https://readmedium.com/mlearning-ai-submission-suggestions-b51e2b130bfb">
<div>
<div>
<h2>Mlearning.ai Submission Suggestions</h2>
<div><h3>How to become a writer on Mlearning.ai</h3></div>
<div><p>medium.com</p></div>
</div>
<div>
<div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*ib0DX0UzRoFcNuZILb7rNA.jpeg)"></div>
</div>
</div>
</a>
</div></article></body>