Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migration diffusers==0.31.0 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
/models/beats/
/scripts/
/synthetic_testset
/datasets
/__pycache__
/models/__pycache__
/models
/modules/beats/__pycache__
/modules/fga/__pycache__
/modules/pipelines/__pycache__
/modules/temp_tokens/__pycache__
/modules/text_encoder/__pycache__
/modules/unet/__pycache__
/utils/__pycache__
4 changes: 2 additions & 2 deletions models/unet_3d_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import torch.utils.checkpoint as checkpoint
from torch import nn
from diffusers.models.resnet import Downsample2D, ResnetBlock2D, TemporalConvLayer, Upsample2D
from diffusers.models.transformer_2d import Transformer2DModel
from diffusers.models.transformer_temporal import TransformerTemporalModel
from diffusers.models.transformers import Transformer2DModel
from diffusers.models import TransformerTemporalModel

# Assign gradient checkpoint function to simple variable for readability.
g_c = checkpoint.checkpoint
Expand Down
2 changes: 1 addition & 1 deletion models/unet_3d_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from diffusers.utils import BaseOutput, logging
from diffusers.models.embeddings import TimestepEmbedding, Timesteps
from diffusers.models.modeling_utils import ModelMixin
from diffusers.models.transformer_temporal import TransformerTemporalModel
from diffusers.models import TransformerTemporalModel
from .unet_3d_blocks import (
CrossAttnDownBlock3D,
CrossAttnUpBlock3D,
Expand Down
4 changes: 2 additions & 2 deletions modules/unet/unet_3d_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
from diffusers.models.attention_processor import AttentionProcessor, AttnProcessor
from diffusers.models.embeddings import TimestepEmbedding, Timesteps
from diffusers.models.modeling_utils import ModelMixin
from diffusers.models.transformer_temporal import TransformerTemporalModel
from diffusers.models.unet_3d_blocks import (
from diffusers.models import TransformerTemporalModel
from diffusers.models.unets.unet_3d_blocks import (
CrossAttnDownBlock3D,
CrossAttnUpBlock3D,
DownBlock3D,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ accelerate
torch
torchvision
torchaudio
git+https://github.com/huggingface/diffusers.git
diffusers==0.31.0
git+https://github.com/cloneofsimo/lora.git
transformers
einops
Expand Down