Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image generation article #37

Merged
merged 10 commits into from
Mar 22, 2024
Merged
10 changes: 10 additions & 0 deletions css/ai.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,21 @@

}

#content h1 {
@apply text-4xl font-medium mt-9 mb-5;
text-transform: uppercase;
}

#content h2 {
@apply text-3xl font-medium mt-9 mb-5;
text-transform: uppercase;
}

#content h3 {
@apply text-2xl font-medium mt-9 mb-5;
text-transform: uppercase;
}

/* blue bar above the section headers*/
h4 {
text-transform: uppercase;
Expand Down
Binary file added img/image-models/autoencoder_diagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/clip_model_diagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/comfyui.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/diffusion.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/diffusion_model_diagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/dreambooth_diagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/low_rank_adaptation_diagram.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/pope_fake.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/purple_diffusion.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_001.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_002.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_003.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_004.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_005.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_006.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_007.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_008.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_009.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_010.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_011.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_012.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_013.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/image-models/screenshot_014.png
Binary file added img/image-models/screenshot_015.png
Binary file added img/image-models/screenshot_016.png
Binary file added img/image-models/screenshot_017.png
Binary file added img/image-models/screenshot_018.png
Binary file added img/image-models/screenshot_019.png
Binary file added img/image-models/screenshot_020.png
Binary file added img/image-models/sd_cn_inference.png
Binary file added img/image-models/stable-video-diffusion.gif
Binary file added img/image-models/text_encoder_diagram.png
Binary file added img/image-models/textual_inversion_diagram.png
Binary file added img/image-models/unet_model_diagram.png
1 change: 1 addition & 0 deletions templates/ai/_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{% include "content/choosing-ml-models/_sidebar.html" %}
{% include "content/running-llms-locally/_sidebar.html" %}
{% include "content/comparing-open-llms/_sidebar.html" %}
{% include "content/image-models/_sidebar.html" %}
{% include "content/notable-projects/_sidebar.html" %}
{% include "content/_upcoming.html" %}

Expand Down
3 changes: 0 additions & 3 deletions templates/content/_upcoming.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<li class="upcoming"><a href="/content/fine-tuning-llms/index.html">
<span class='text-yellow-700 bg-yellow-100 pt-1 pr-2 pl-2 pb-1 rounded-md text-xs'>Contribute</span>
Fine-Tuning LLMs</a></li>
<li class="upcoming"><a href="/content/image-models/index.html">
<span class='text-yellow-700 bg-yellow-100 pt-1 pr-2 pl-2 pb-1 rounded-md text-xs'>Contribute</span>
Image Models</a></li>
<li class="upcoming"><a href="/content/models-from-scratch/index.html">
<span class='text-yellow-700 bg-yellow-100 pt-1 pr-2 pl-2 pb-1 rounded-md text-xs'>Contribute</span>
Models From Scratch</a></li>
Expand Down
4 changes: 2 additions & 2 deletions templates/content/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fi

find $root_path -name "*.md" | while read -r file;
do echo "Building $file";
marked -o "${file%.md}.html" "$file";
done
marked -o "${file%.md}-content.html" "$file";
done
36 changes: 35 additions & 1 deletion templates/content/image-models/_sidebar.html
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
<li></ul></details></li>
<li>
<details closed>
<summary>
<a href="/content/image-models/index.html">Image Generation</a>
</summary>
<ul class="sub_menu">
<li>
<a href="/content/image-models/index.html#what-is-image-generation"
>What is image generation?</a
>
</li>
<li>
<a href="/content/image-models/index.html#what-are-diffusion-models"
>What are diffusion models?</a
>
</li>
<li>
<a href="/content/image-models/index.html#challenges">Challenges</a>
</li>
<li>
<a href="/content/image-models/index.html#technical-foundations"
>Technical Foundations</a
>
</li>
<li>
<a href="/content/image-models/index.html#glossary">Glossary</a>
</li>
<li>
<a href="/content/image-models/index.html#recommended-references"
>Recommended References</a
>
</li>
</ul>
</details>
</li>
572 changes: 568 additions & 4 deletions templates/content/image-models/index-content.html

Large diffs are not rendered by default.

562 changes: 558 additions & 4 deletions templates/content/image-models/index.md

Large diffs are not rendered by default.

30 changes: 29 additions & 1 deletion tools/build_ai_guide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,42 @@ if ! command -v marked &> /dev/null
then
echo "marked could not be found"
echo "Installing marked..."
npm install -g marked
npm install -g marked@^6.0.0

if ! command -v marked &> /dev/null
then
echo "Failed to install marked@^6.0.0."
echo "Please install marked@^6.0.0 and try again"
exit 1
fi
fi

if ! command -v jupyter-nbconvert &> /dev/null
then
echo "jupyter-nbconvert could not be found"
echo "Installing jupyter & jupyter-nbconvert..."
pip install jupyter

if ! command -v jupyter-nbconvert &> /dev/null
then
echo "Failed to install jupyter-nbconvert."
echo "Please install jupyter & jupyter-nbconvert and try again"
exit 1
fi
fi

if ! command -v jq &> /dev/null
then
echo "jq could not be found"
echo "Installing jq..."
apt-get install -y jq

if ! command -v jq &> /dev/null
then
echo "Failed to install jq."
echo "Please install jq and try again"
exit 1
fi
fi

find $SOURCE_PATH -name "*.md" | while read -r file;
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = {
],
},
{
test: /\.(png|svg|jpe?g|ico)$/,
test: /\.(png|svg|jpe?g|ico|gif)$/,
type: "asset/resource",
generator: {
filename: "img/[name].[hash:8][ext]",
Expand Down