Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
umzi2 authored Aug 5, 2024
1 parent c15faf6 commit 57944b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ Training code from [NeoSR](https://github.com/muslll/neosr)
### Detect:
```py
def detect(state):
state_keys = state.keys()
n_feats = get_seq_len(state, "feats")-1
blocks = [
get_seq_len(state,f"feats.{n_feat+1}.block_n")
for n_feat in range(n_feats)
]
num_in_ch = state["feats.0.eval_conv.weight"].shape[1]
feature_channels = state["feats.0.eval_conv.weight"].shape[0]
if "upsampler.0.weight" in state_keys:
if "upsampler.0.weight" in state:
upsampler = "ps"
num_out_ch = num_in_ch
upscale = int((state["upsampler.0.weight"].shape[0] / num_in_ch) ** 0.5)
Expand Down

0 comments on commit 57944b8

Please sign in to comment.