Skip to content

Commit

Permalink
rename EditDataPreprocessor to DataPreprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Taited committed Jun 1, 2023
1 parent 1686e66 commit 535016a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@

model = dict(
type='Glide',
data_preprocessor=dict(
type='EditDataPreprocessor', mean=[127.5], std=[127.5]),
data_preprocessor=dict(type='DataPreprocessor', mean=[127.5], std=[127.5]),
unet=unet_cfg,
diffusion_scheduler=dict(
type='EditDDIMScheduler',
Expand Down
2 changes: 1 addition & 1 deletion projects/glide/models/glide.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self,
classifier: Optional[dict] = None,
classifier_scale: float = 1.0,
data_preprocessor: Optional[ModelType] = dict(
type='EditDataPreprocessor'),
type='DataPreprocessor'),
pretrained_cfgs: Optional[dict] = None):

super().__init__(data_preprocessor=data_preprocessor)
Expand Down

0 comments on commit 535016a

Please sign in to comment.