Spaces:
Runtime error
Runtime error
add mask
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def gr_caption(x):
|
|
101 |
return np.clip(img, a_min=0., a_max=1.)
|
102 |
|
103 |
masked, masked_recon, recon, latent = visual_recon(x, model)
|
104 |
-
caption_from_model = caption(
|
105 |
|
106 |
masked, masked_recon, recon = map(unnorm_pix, (masked, masked_recon, recon))
|
107 |
|
|
|
101 |
return np.clip(img, a_min=0., a_max=1.)
|
102 |
|
103 |
masked, masked_recon, recon, latent = visual_recon(x, model)
|
104 |
+
caption_from_model = caption(8, latent, model, tokenizer, )
|
105 |
|
106 |
masked, masked_recon, recon = map(unnorm_pix, (masked, masked_recon, recon))
|
107 |
|