Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In video background remover replicate #2

Open
tahercoolguy opened this issue Jun 29, 2024 · 4 comments
Open

In video background remover replicate #2

tahercoolguy opened this issue Jun 29, 2024 · 4 comments

Comments

@tahercoolguy
Copy link

tahercoolguy commented Jun 29, 2024

In video background remover replicate . I have successful deployed on replicate through your code . But at the runtime i am getting this error

Prediction failed.

torch.cat(): expected a non-empty list of Tensors

`0 0.0 - 1.5
Traceback (most recent call last):
File "/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/cog/server/worker.py", line 221, in _predict
result = predict(**payload)
^^^^^^^^^^^^^^^^^^
File "/src/predict.py", line 25, in predict
out = self.pipe(str(video), chunk_duration=1.5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/pipeline.py", line 153, in call
full_processed_video = torch.cat(processed_video_clips, dim=1) # Assuming dim=1 is the time dimension
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: torch.cat(): expected a non-empty list of Tensors

`

And above is snippet

Can you please help what problem it can be

@nateraw
Copy link
Owner

nateraw commented Jun 29, 2024

Could it be a bad input file? Have you tried any of the example files that are in the demo I put on replicate?

@nateraw
Copy link
Owner

nateraw commented Jun 29, 2024

@tahercoolguy
Copy link
Author

Thanks for it . I will try .

@tahercoolguy
Copy link
Author

I have used above link i am getting decoding error "Unable to decode video stream"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants