-
Notifications
You must be signed in to change notification settings - Fork 384
Timesformer reader align #171
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
Merged
huangjun12
merged 140 commits into
PaddlePaddle:develop
from
HydrogenSulfate:timesformer_reader_align
Jul 22, 2021
Merged
Timesformer reader align #171
huangjun12
merged 140 commits into
PaddlePaddle:develop
from
HydrogenSulfate:timesformer_reader_align
Jul 22, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix line 108's bug
huangjun12
reviewed
Jul 22, 2021
paddlevideo/utils/save_load.py
Outdated
def load_ckpt(model, weight_path): | ||
def load_ckpt(model, | ||
weight_path, | ||
num_patches=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后面这三个参数用 **kargs,load接口里出现这三个参数有点奇怪
print(params_info) | ||
|
||
if args.FLOPs: | ||
flops_info = paddle.flops(model, [1, num_seg, 3, img_size, img_size], | ||
print_detail=True) | ||
flops_info = paddleslim.analysis.flops(model, [1, 1, num_seg, 3, img_size, img_size]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle.flops接口跑不通吗?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
configs/recognition/timesformer/timesformer_k400_videos.yaml
paddlevideo/loader/pipelines/augmentations.py
, and corresponding UniformCropMetric inpaddlevideo/metrics/uniform_crop_metric.py
paddlevideo/loader/pipelines/decode.py
paddlevideo/loader/pipelines/sample.py
paddlevideo/modeling/backbones/vit.py
paddlevideo/modeling/framework/recognizers/recognizer2d.py
while using TimeSformer and ViT based modelpaddlevideo/tasks/train.py
paddlevideo/tasks/train.py
tools/export_model.py
for TimeSformer, even though there still remain some todo for inference modeltools/utils.py
TenCrop
.pyav
utils.summary
to fix some bugs where FLOPs could be negtive