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

add slowfast model to video classification #4815

Merged
merged 6 commits into from
Sep 1, 2020

Conversation

huangjun12
Copy link
Contributor

add slowfast model to video classification

)

use_data_parallel = args.use_data_parallel
place = fluid.CUDAPlace(fluid.dygraph.parallel.Env().dev_id) \
Copy link
Contributor

Choose a reason for hiding this comment

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

can it suport cpu device?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

for batch_id, data in enumerate(train_loader):
batch_reader_end = time.time()
y_data = data[2]
labels = to_variable(y_data)
Copy link
Contributor

Choose a reason for hiding this comment

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

to_variable之后,网络之前,建议添加个耗时统计,对于性能优化预计有较大帮助

@shippingwang shippingwang self-requested a review August 28, 2020 07:34
parser.add_argument(
'--weights',
type=str,
default="checkpoints/slowfast_epoch195",
Copy link
Member

Choose a reason for hiding this comment

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

default is None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@shippingwang shippingwang left a comment

Choose a reason for hiding this comment

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

LGTM

@shippingwang shippingwang merged commit 2c8b76b into PaddlePaddle:develop Sep 1, 2020
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

Successfully merging this pull request may close these issues.

3 participants