Spaces:
Runtime error
Runtime error
Parameter mismatch - fix?
#1
by
crcdng
- opened
The app doesn't work anymore, because Sketchpad
returns a dictionary but torch.tensor
requires a multidimensional numpy array in a specific shape (app.py line 30).
The first step IMHO is to be replace im
with im['composite']
. This results in the following error "RuntimeError: Expected 3D (unbatched) or 4D (batched) input to conv2d, but got input of size: [1, 1, 800, 800, 4]". I tried several ways to reshape the input but still missing the insight to fix it.
There is a running version of this app at https://course-demos-draw2.hf.space/ but IDK where to find the code for that version.
Does anyone know how to proceed / fix?