The English explanation is below. 日本語 AIでキャラクターの顔画像を生成するプログラムです。64×64の画像を生成します。 【実行方法】 以下のURLから実行してください。 https://turbowarp.org/?project_url=https://raw.githubusercontent.com/1A291109A6/CharacterGenerator_Scratch/main/CharacterGenerator.sb3 【使い方】 上部のタブをクリックしてモードを切り替えます。 <「Image」モード> 「Generate」ボタン: ランダムなSeed値で生成します。 「Seed」ボタン: 10桁のSeed値を指定して生成します。Seed値を共有してキャラクターを共有できます!(-1を入力するとランダムになります) 「A」「B」「C」「D」ボタン: 気に入ったキャラクターができたら、「A」や「B」のボタンで一時的にキープしておけます。最大4人までキープ可能です。 「保存」ボタン: 特に気に入ったキャラクターは、後述の「Gallery」に保存して、自分だけのコレクションに加えましょう。 <「Mix」モード> 「Mix A&B」ボタン: このボタンを押すと、AのキャラクターとBのキャラクターの特徴を混ぜた新しいキャラクターを生成します。髪や目の色が混ざったり、画風も混ざります。 <「Gallery」モード> 保存したキャラクターたちを表示します。 画像をクリックすると大きく表示できます。 削除ボタン(ゴミ箱マーク)をクリックして全削除、または選んだ画像のみ削除できます。 ここからお気に入りのキャラクターを「A」「B」「C」「D」に呼び出して、再び「Mix」や「Video」作成に使うこともできます。 <「Video」モード> A、B、C、Dにキープした4人のキャラクターたちが、滑らかに次々と変化していく不思議なループ動画を作成できます。 「Generate Video」ボタン: Aの顔がBの顔へ、BがCへ、CがDへ、そしてDがまたAへとループして変化する動画を作成します。動画のフレーム数を設定してください。 <「Changing」モード> 4人のキャラクター(A, B, C, D)が変化していく画像を生成します。 「Generate Changing Images」ボタン: 生成される画像は、左上にA、右上にB、右下にC、左下にDのキャラクターが配置されます。そして、その間を埋めるように、キャラクターたちが混ざり合いながら変化していく途中の画像を生成します。 English This is a program that uses AI to generate character face images. It creates 64x64 pixel images. 【How to Run】 Please execute from the following URL. https://turbowarp.org/?project_url=https://raw.githubusercontent.com/1A291109A6/CharacterGenerator_Scratch/main/CharacterGenerator.sb3 【How to Use】 Click the tabs at the top to switch between modes. <Image Mode> - "Generate" button: Creates a character using a random seed value. - "Seed" button: Creates a character using a specific 10-digit seed value. You can share characters by sharing their seed! (Entering -1 will generate a random character). - "A", "B", "C", "D" buttons: If you create a character you like, you can temporarily save it to one of these slots. You can keep up to four characters at a time. - "Save" button: Save your absolute favorite characters to the "Gallery" (described below) to create your own personal collection. <Mix Mode> - "Mix A&B" button: This button generates a new character by blending the features of the characters in slots A and B. Their hair color, eye color, and even artistic style will be mixed. <Gallery Mode> This mode displays your saved characters. - Click on an image to view it in a larger size. - Use the delete button (trash can icon) to either delete all characters or only the selected one. - From here, you can load your favorite characters back into the "A", "B", "C", or "D" slots to use them again in "Mix" mode or for "Video" creation. <Video Mode> Create a fascinating looping video where the four characters kept in slots A, B, C, and D smoothly morph into one another. - "Generate Video" button: Creates a video where character A morphs into B, B into C, C into D, and finally D loops back to A. You can set the number of frames for the video. <Changing Mode> Generates an image grid showing the transformation between the four characters (A, B, C, D). - "Generate Changing Images" button: This will create an image with character A in the top-left, B in the top-right, C in the bottom-right, and D in the bottom-left. The space between them is filled with images showing the gradual transformation as the characters blend into each other.
軽量モデルができました A lightweight model is now available ↓ https://scratch.mit.edu/projects/1218465478/ VAEを用いて学習し、GANでFine-tuningしたので比較的高品質な画像の生成に成功しました。 ↓実装についての記事を書きました https://qiita.com/youheguchi918/items/dd4ce326f5e9e3b638e6 【おすすめSeed値】 金髪でおとなしそうなキャラ 0353519319 ピンク髪で幼いキャラ 1238832708 金髪でクール系のキャラ 0041425216 茶髪で幼いキャラ 1452975820 青髪のお姉ちゃんキャラ 1371696773 茶髪のお姉さんキャラ 1379954123 茶髪のギャル系キャラ 0708928691 【アップデート情報】 2025/08/21 「generate process」の不要な処理の削除及び高速化 2025/08/23 「Linear」の引数のミスの修正及びVAEモデルの拡張性の向上 2025/08/24 削除ツールの高速化、リスト名の変更及びSeed値「-1」のバグの修正 2025/08/26 「delete gallery」のバグの修正 【AIの学習に使用したデータセット】 https://www.kaggle.com/datasets/splcher/animefacedataset 【License】 ODbL 【AIのパラメータ数】 3.8M 【AIの構成】 VAEのデコーダ部分を使用 latent_dim = 128 # 潜在ベクトルの次元 # 128→512×4×4 nn.Linear(latent_dim, 512 * 4 * 4) # 512×4×4→256×8×8 nn.ConvTranspose2d(512, 256, 4, 2, 1) nn.BatchNorm2d(256) nn.ReLU(True) # 256×8×8→128×16×16 nn.ConvTranspose2d(256, 128, 4, 2, 1) nn.BatchNorm2d(128) nn.ReLU(True) # 128×16×16→64×32×32 nn.ConvTranspose2d(128, 64, 4, 2, 1) nn.BatchNorm2d(64) nn.ReLU(True) # 64×32×32→3×64×64 nn.ConvTranspose2d(64, 3, 4, 2, 1) nn.Sigmoid() 【Tags】 #CharacterGenerator #AIcharacter #FaceGenerator #Morphing #AIart #AI #VAE #ImageGenerator #Generator #GenerativeAI