Skip to content

Commit

Permalink
Update preprocessor_normaldsine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbds committed Mar 4, 2024
1 parent 0123272 commit 4cf5bce
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ def load_model(self):
"https://huggingface.co/bdsqlsz/qinglong_controlnet-lllite/resolve/main/Annotators/dsine.pt",
model_dir=preprocessor_dir)

args = types.SimpleNamespace()
args.mode = 'client'
args.architecture = 'BN'
args.pretrained = 'dsine'
args.sampling_ratio = 0.4
args.importance_ratio = 0.7
model = DSINE(args)
model = DSINE()
model = load_checkpoint(model_path, model)
self.norm = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])

Expand Down

0 comments on commit 4cf5bce

Please sign in to comment.