Spaces:
Runtime error
Runtime error
crypto-code
commited on
Commit
·
f32caf3
1
Parent(s):
968cca5
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,6 @@ for key, value in checkpoint['model'].items():
|
|
49 |
load_result = model.load_state_dict(new_ckpt, strict=False)
|
50 |
assert len(load_result.unexpected_keys) == 0, f"Unexpected keys: {load_result.unexpected_keys}"
|
51 |
model.eval()
|
52 |
-
model.to("cuda")
|
53 |
|
54 |
transform = transforms.Compose(
|
55 |
[transforms.ToTensor(), transforms.Lambda(lambda x: x.repeat(3, 1, 1) if x.size(0) == 1 else x)])
|
|
|
49 |
load_result = model.load_state_dict(new_ckpt, strict=False)
|
50 |
assert len(load_result.unexpected_keys) == 0, f"Unexpected keys: {load_result.unexpected_keys}"
|
51 |
model.eval()
|
|
|
52 |
|
53 |
transform = transforms.Compose(
|
54 |
[transforms.ToTensor(), transforms.Lambda(lambda x: x.repeat(3, 1, 1) if x.size(0) == 1 else x)])
|