Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beautiful Doc string added into the UNetMidBlock2D class. (#5389)
* I added a new doc string to the class. This is more flexible to understanding other developers what are doing and where it's using. * Update src/diffusers/models/unet_2d_blocks.py This changes suggest by maintener. Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> * Update src/diffusers/models/unet_2d_blocks.py Add suggested text Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> * Update unet_2d_blocks.py I changed the Parameter to Args text. * Update unet_2d_blocks.py proper indentation set in this file. * Update unet_2d_blocks.py a little bit of change in the act_fun argument line. * I run the black command to reformat style in the code * Update unet_2d_blocks.py similar doc-string add to have in the original diffusion repository. * Update unet_2d_blocks.py Added Beutifull doc-string into the UNetMidBlock2D class. * Update unet_2d_blocks.py I replaced the definition in this parameter resnet_time_scale_shift and resnet_groups. * Update unet_2d_blocks.py I remove additional sentences into the resnet_groups argument. * Update unet_2d_blocks.py I replaced my definition with the maintainer definition in the attention_head_dim parameter. * I am using black package for reformated my file --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> Co-authored-by: YiYi Xu <yixu310@gmail.com>
- Loading branch information