Skip to content

Commit

Permalink
Merge pull request #18 from modelscope/v0.0.4_dev
Browse files Browse the repository at this point in the history
V0.0.4 dev
  • Loading branch information
maochaojie committed Apr 10, 2024
2 parents 36b259b + 8a9b791 commit 0010d42
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1,072 deletions.
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ python run.py --cfg classifier.yaml
```



## 🖥️ SCEPTER Studio

### Launch
Expand Down
2 changes: 1 addition & 1 deletion scepter/modules/inference/diffusion_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def encode_first_stage(self, x, **kwargs):
return self.first_stage_model['paras']['scale_factor'] * z

def decode_first_stage(self, z):
_, dtype = self.get_function_info(self.first_stage_model, 'encode')
_, dtype = self.get_function_info(self.first_stage_model, 'decode')
with torch.autocast('cuda',
enabled=dtype == 'float16',
dtype=getattr(torch, dtype)):
Expand Down
Loading

0 comments on commit 0010d42

Please sign in to comment.