camenduru

Results 141 comments of camenduru

Hi @patrickvonplaten πŸ‘‹ ok

Good idea 🀩 maybe like this: https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_flax_pytorch_utils.py#L242-L352

![download](https://user-images.githubusercontent.com/54370274/209425812-46208883-5fd5-4055-8f84-75cb50e1af8c.png) https://github.com/camenduru/diffusers/blob/from_flax_v2/src/diffusers/modeling_pytorch_flax_utils.py https://huggingface.co/camenduru/plushies-pt

Please make a script that can convert original stable diffusion to flax πŸš€

and please make an auto-converter if someone publishes it like this https://huggingface.co/nitrosocke/modern-disney-diffusion it will automatically convert to all different models πŸ€–πŸ§¨

@patrickvonplaten ✨ thanks I converted https://huggingface.co/nitrosocke/mo-di-diffusion to flax but how to push to flax branch I opened PR but [PR](https://huggingface.co/nitrosocke/mo-di-diffusion/discussions/8) going to main branch πŸ†˜

and I converted like this ``` pipeline, params = FlaxStableDiffusionPipeline.from_pretrained("nitrosocke/mo-di-diffusion", from_pt=True) pipeline.save_pretrained("/home/camenduru/mo-di-flax", params=params) ``` should I put this to `bf16` branch or `flax` branch ?

I also converted waifu-diffusion ✨ haru will add [here](https://huggingface.co/hakurei/waifu-diffusion) πŸŽ‰

download from youtube and extract frames ```py pip install yt_dlp python -c "from yt_dlp import YoutubeDL; YoutubeDL({'overwrites':True, 'format':'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4', 'outtmpl':'/content/video.mp4'}).download(['https://youtu.be/EU3hIXXeiz4'])" mkdir /content/video ffmpeg -i /content/video.mp4 '/content/video/%04d.png' ``` or ```py pip install...