Skip to content

In video background remover replicate  #2

@tahercoolguy

Description

@tahercoolguy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions