zassou65535/image_generator_2
zassou65535/image_generator_2 has 36 GitHub stars and 5 forks. GitHot measured 0 in 7 days and 0 in 15 days. Last checked 2026-11-11 01:24 UTC. Last push 2024-07-25.
Progressive GANによる画像生成器
Measured star growth
- in 24h
- Update delayed
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalimage_generator_2
概要
メルアイコン生成器 version2で用いたソースコードです。
詳しい解説はこちら。
想定環境
python 3.7.1pip install -r requirements.txtで環境を揃えることができます。
プログラム
PGGAN_train.pyは学習を実行し、学習の過程と学習結果を出力するプログラムです。PGGAN_inference.pyはPGGAN_train.pyが出力した学習結果をGeneratorに読み込み推論を実行、生成画像を出力するプログラムです。
使い方
PGGAN_train.pyのあるディレクトリに./datasetディレクトリを作成します./datasetディレクトリに、学習に使いたい画像を./dataset/*/*という形式で好きな数入れます(画像のファイル形式はpng)PGGAN_train.pyの置いてあるディレクトリでpython PGGAN_train.pyを実行して学習を開始します- 学習の過程が
./output_img/pggan_train/以下に出力されます - 学習結果が
generator_trained_model_cpu.pthとして出力されます
- 学習の過程が
PGGAN_inference.pyの置いてあるディレクトリでpython PGGAN_inference.pyを実行して推論します- 推論結果が
./output_img/pggan_inference/以下に出力されます - 注意点として、
PGGAN_inference.pyの置いてあるディレクトリにgenerator_trained_model_cpu.pthがなければエラーとなります
- 推論結果が
学習には環境によっては12時間以上要する場合があります。
入力された画像は256×256にリサイズされた上で学習に使われます。出力画像も256×256です。
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,274 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,024 stars