├── LICENSE ├── README.md ├── convert_keras_diffusion_model_into_two_tflite_models.ipynb ├── convert_keras_diffusion_model_into_two_tflite_models_qint8.ipynb ├── convert_sd2_keras_diffusion_model_into_two_tflite_models.ipynb ├── convert_sd2_text_encoder_and_decoder_to_tflite_model.ipynb ├── convert_text_encoder_and_decoder_to_tflite_models.ipynb ├── convert_text_encoder_and_decoder_to_tflite_models_qint8.ipynb ├── convert_to_tflite_models_with_dynamic_range.py ├── cpp_glue_code ├── .bazelrc ├── .bazelversion ├── BUILD ├── Makefile ├── README.md ├── WORKSPACE ├── bpe.cc ├── bpe.h ├── build_def.bzl ├── decoded_inpainting.png ├── decoded_inpainting.raw ├── inpainting_util.cc ├── inpainting_util.h ├── man-on-skateboard-cropped.rgb ├── mask.bin ├── merges.txt ├── scheduling_util.cc ├── scheduling_util.h ├── test_random.cc ├── test_stable_diffusion.cc ├── test_stable_diffusion_2_in_1.cc ├── test_stable_diffusion_inpainting.cc ├── test_stable_diffusion_inpainting_2_in_1.cc ├── tflite_util.h └── vocab.txt ├── inpainting_using_converted_tflite_models_dynamic.ipynb ├── inpainting_using_converted_tflite_models_dynamic_2_in_1.ipynb ├── man-on-skateboard-cropped.png ├── text_to_image_using_converted_tflite_models.ipynb ├── text_to_image_using_converted_tflite_models_dynamic.ipynb ├── text_to_image_using_converted_tflite_models_dynamic_2_in_1.ipynb └── text_to_image_with_tflite_models_from_huggingface.ipynb /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/README.md -------------------------------------------------------------------------------- /convert_keras_diffusion_model_into_two_tflite_models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_keras_diffusion_model_into_two_tflite_models.ipynb -------------------------------------------------------------------------------- /convert_keras_diffusion_model_into_two_tflite_models_qint8.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_keras_diffusion_model_into_two_tflite_models_qint8.ipynb -------------------------------------------------------------------------------- /convert_sd2_keras_diffusion_model_into_two_tflite_models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_sd2_keras_diffusion_model_into_two_tflite_models.ipynb -------------------------------------------------------------------------------- /convert_sd2_text_encoder_and_decoder_to_tflite_model.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_sd2_text_encoder_and_decoder_to_tflite_model.ipynb -------------------------------------------------------------------------------- /convert_text_encoder_and_decoder_to_tflite_models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_text_encoder_and_decoder_to_tflite_models.ipynb -------------------------------------------------------------------------------- /convert_text_encoder_and_decoder_to_tflite_models_qint8.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_text_encoder_and_decoder_to_tflite_models_qint8.ipynb -------------------------------------------------------------------------------- /convert_to_tflite_models_with_dynamic_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/convert_to_tflite_models_with_dynamic_range.py -------------------------------------------------------------------------------- /cpp_glue_code/.bazelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/.bazelrc -------------------------------------------------------------------------------- /cpp_glue_code/.bazelversion: -------------------------------------------------------------------------------- 1 | 5.3.0 2 | -------------------------------------------------------------------------------- /cpp_glue_code/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/BUILD -------------------------------------------------------------------------------- /cpp_glue_code/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/Makefile -------------------------------------------------------------------------------- /cpp_glue_code/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/README.md -------------------------------------------------------------------------------- /cpp_glue_code/WORKSPACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/WORKSPACE -------------------------------------------------------------------------------- /cpp_glue_code/bpe.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/bpe.cc -------------------------------------------------------------------------------- /cpp_glue_code/bpe.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/bpe.h -------------------------------------------------------------------------------- /cpp_glue_code/build_def.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/build_def.bzl -------------------------------------------------------------------------------- /cpp_glue_code/decoded_inpainting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/decoded_inpainting.png -------------------------------------------------------------------------------- /cpp_glue_code/decoded_inpainting.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/decoded_inpainting.raw -------------------------------------------------------------------------------- /cpp_glue_code/inpainting_util.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/inpainting_util.cc -------------------------------------------------------------------------------- /cpp_glue_code/inpainting_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/inpainting_util.h -------------------------------------------------------------------------------- /cpp_glue_code/man-on-skateboard-cropped.rgb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/man-on-skateboard-cropped.rgb -------------------------------------------------------------------------------- /cpp_glue_code/mask.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/mask.bin -------------------------------------------------------------------------------- /cpp_glue_code/merges.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/merges.txt -------------------------------------------------------------------------------- /cpp_glue_code/scheduling_util.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/scheduling_util.cc -------------------------------------------------------------------------------- /cpp_glue_code/scheduling_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/scheduling_util.h -------------------------------------------------------------------------------- /cpp_glue_code/test_random.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/test_random.cc -------------------------------------------------------------------------------- /cpp_glue_code/test_stable_diffusion.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/test_stable_diffusion.cc -------------------------------------------------------------------------------- /cpp_glue_code/test_stable_diffusion_2_in_1.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/test_stable_diffusion_2_in_1.cc -------------------------------------------------------------------------------- /cpp_glue_code/test_stable_diffusion_inpainting.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/test_stable_diffusion_inpainting.cc -------------------------------------------------------------------------------- /cpp_glue_code/test_stable_diffusion_inpainting_2_in_1.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/test_stable_diffusion_inpainting_2_in_1.cc -------------------------------------------------------------------------------- /cpp_glue_code/tflite_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/tflite_util.h -------------------------------------------------------------------------------- /cpp_glue_code/vocab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/cpp_glue_code/vocab.txt -------------------------------------------------------------------------------- /inpainting_using_converted_tflite_models_dynamic.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/inpainting_using_converted_tflite_models_dynamic.ipynb -------------------------------------------------------------------------------- /inpainting_using_converted_tflite_models_dynamic_2_in_1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/inpainting_using_converted_tflite_models_dynamic_2_in_1.ipynb -------------------------------------------------------------------------------- /man-on-skateboard-cropped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/man-on-skateboard-cropped.png -------------------------------------------------------------------------------- /text_to_image_using_converted_tflite_models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/text_to_image_using_converted_tflite_models.ipynb -------------------------------------------------------------------------------- /text_to_image_using_converted_tflite_models_dynamic.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/text_to_image_using_converted_tflite_models_dynamic.ipynb -------------------------------------------------------------------------------- /text_to_image_using_converted_tflite_models_dynamic_2_in_1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/text_to_image_using_converted_tflite_models_dynamic_2_in_1.ipynb -------------------------------------------------------------------------------- /text_to_image_with_tflite_models_from_huggingface.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/freedomtan/keras_cv_stable_diffusion_to_tflite/HEAD/text_to_image_with_tflite_models_from_huggingface.ipynb --------------------------------------------------------------------------------