Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
talhaanwarch committed Sep 26, 2022
1 parent 72a1f36 commit b6f500e
Showing 1 changed file with 590 additions and 0 deletions.

9 comments on commit b6f500e

@pallaviyn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear sir,
I am running this exact code.
But during training of model, I got "ValueError: expected 5D input (got 4D input)". Will you please me to resolve this error.
error

@talhaanwarch
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your data should be of 5D ie batch, channels, video length, height, width

@pallaviyn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My data size is, (torch.Size([4, 3, 20, 224, 224]) still it gives me this error.

batch

How can I rectify this error.

@pallaviyn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sir please help me..
My data is already in 5D format. As you suggested like [batch_size, num_channel, Video_length, height, width], so where it is going wrong.
Please reply.

@talhaanwarch
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you can share a sample data and code, I can look into it

@pallaviyn
Copy link

@pallaviyn pallaviyn commented on b6f500e Jun 2, 2023 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@talhaanwarch
Copy link
Owner Author

@talhaanwarch talhaanwarch commented on b6f500e Jun 3, 2023 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pallaviyn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot sir, I have tried with 1.11.0 version and its solved.

But when the num_workers ==0, once I set num_workers>0 it gives me, "TypeError: cannot pickle 'torch._C.Generator' object".

How can I rectify this, pls suggest something.

@pallaviyn
Copy link

@pallaviyn pallaviyn commented on b6f500e Jul 31, 2023 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.