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

Renewal repository #7

Open
wants to merge 95 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
d4aa4d4
renewal
jinmang2 Jun 22, 2023
02fe387
add base ref
jinmang2 Jun 22, 2023
aa4a6b5
add hf-like mgfn model base
jinmang2 Jun 22, 2023
ed7084c
black adjust
jinmang2 Jun 22, 2023
45234da
exchange filenames
jinmang2 Jun 22, 2023
e2801d9
fix init_dim on feature_amplifier
jinmang2 Jun 22, 2023
2523fca
resolve nn.Sequential
jinmang2 Jun 22, 2023
2ed932c
fix mgfn intermediate submodule name
jinmang2 Jun 22, 2023
842ca04
add MFGNForVideoAnomalyDetection class
jinmang2 Jun 23, 2023
f348ac0
fix position argument error on msnsd
jinmang2 Jun 23, 2023
48346ec
add depth on glance/focus blocks
jinmang2 Jun 23, 2023
5efa839
add convert script for mgfn
jinmang2 Jun 23, 2023
866a351
resolve msnsd batch inference and clean code
jinmang2 Jun 23, 2023
e609400
add hf-like model output on mgfn
jinmang2 Jun 23, 2023
f4af3f4
fix bug on mgfn api
jinmang2 Jun 23, 2023
d609010
add mgfn loss
jinmang2 Jun 23, 2023
87a92ad
add missing factor
jinmang2 Jun 23, 2023
d8f362e
match official model's output and loss
jinmang2 Jun 23, 2023
8f6b748
official matching code
jinmang2 Jun 23, 2023
4b2ecff
add deprecated official repo codes
jinmang2 Jun 23, 2023
c935692
update readme
jinmang2 Jun 23, 2023
2d9d07e
disable force_split
jinmang2 Jun 23, 2023
6c4c216
black on dataset.py
jinmang2 Jun 27, 2023
4e172a8
add feature extraction demo code
jinmang2 Jun 27, 2023
38f53c5
fix bug on dataset.py
jinmang2 Jun 27, 2023
db4e477
add feature on Tencropdataset: handling ffmpeg
jinmang2 Jun 27, 2023
9cd625a
fix bug os.sep
jinmang2 Jun 28, 2023
f653a87
add i3d reference model
jinmang2 Jun 28, 2023
d9626cb
add resample argument
jinmang2 Jun 28, 2023
0c49a62
split to_tensor logic
jinmang2 Jun 28, 2023
4b23a58
make batch from dict to tensor
jinmang2 Jun 28, 2023
799e67c
spell correction MGFNForVAD model
jinmang2 Jun 28, 2023
8af7672
add group normalization variant
jinmang2 Jun 29, 2023
acc0b50
revise load fe logics
jinmang2 Jun 29, 2023
c72c4c4
match model_name on i3d.py
jinmang2 Jun 29, 2023
9bd90aa
add type hint on loss_mgfn.py
jinmang2 Jun 29, 2023
50a3b5b
mv files to src folder
jinmang2 Jun 29, 2023
5b88165
refactor repo - mgfn
jinmang2 Jun 29, 2023
06dd39c
update readme
jinmang2 Jun 29, 2023
6e46881
change to frame logic using decord lib
jinmang2 Jul 4, 2023
b8757de
add feature extraction script
jinmang2 Jul 4, 2023
83cad22
add annotation for feature shape
jinmang2 Jul 4, 2023
b1f7ee6
refactor mgfn modules
jinmang2 Jul 4, 2023
cacddb5
add remaining codes
jinmang2 Jul 4, 2023
3fea40b
delete unusual list files
jinmang2 Jul 7, 2023
a2bf15d
add segment feature extraction for very long videos
jinmang2 Jul 11, 2023
4599942
revise comment on extract method
jinmang2 Jul 11, 2023
f906600
add comment jinmang2/ucf_crime hub
jinmang2 Jul 11, 2023
c429259
add mgfn's feature shape detail
jinmang2 Jul 12, 2023
04bdbab
add process_feat staticmethod on feature dataset
jinmang2 Jul 12, 2023
3ea6a05
add segment
jinmang2 Jul 13, 2023
c4c3101
revise FeatureDataset
jinmang2 Jul 13, 2023
212a3dd
fix logics
jinmang2 Jul 13, 2023
a68650b
fix bug
jinmang2 Jul 13, 2023
8e153d8
mv gtransforms to utils folder
jinmang2 Jul 13, 2023
7ad5ff0
update dataset.py
jinmang2 Jul 13, 2023
fb6a1d2
add filenames on featuredataset
jinmang2 Jul 13, 2023
fcc92d5
fix record_checksums option to False for speed loading
jinmang2 Jul 13, 2023
700808a
add type on feature dataset
jinmang2 Jul 13, 2023
4fba6b2
fix label dtype
jinmang2 Jul 13, 2023
e57ffc2
add make gt scripts
jinmang2 Jul 13, 2023
d64b069
update make gt scripts
jinmang2 Jul 13, 2023
35c4f24
remove unusual files
jinmang2 Jul 13, 2023
a180938
revise feature dataset
jinmang2 Jul 13, 2023
75cad08
fix bug
jinmang2 Jul 13, 2023
a4b4746
add base run script
jinmang2 Jul 14, 2023
7680e4e
fix anomaly label error #5
jinmang2 Jul 14, 2023
d37248e
add magnitude method
jinmang2 Jul 18, 2023
0f79442
add revision kwargs on build_feature_dataset
jinmang2 Jul 19, 2023
65ad90b
fix zero_grad bug #6
jinmang2 Jul 19, 2023
18f348b
update run script
jinmang2 Jul 19, 2023
1f62789
add notebook tqdm and fix bug on decord
jinmang2 Jul 31, 2023
82a4eff
fix tqdm for colab
jinmang2 Jul 31, 2023
84aa4e4
revise default arguments for load dataset
jinmang2 Jul 31, 2023
22eb3df
revise segment condition
jinmang2 Aug 3, 2023
e705e9c
fix segment
jinmang2 Aug 4, 2023
1e9e6db
remove magniture code
jinmang2 Aug 4, 2023
03fe657
fix dtype on anomaly/label (double to float32)
jinmang2 Aug 7, 2023
56f67b5
fix i/o typing on FeatureDataset
jinmang2 Aug 7, 2023
4eb770e
add base video anomaly detection runner
jinmang2 Aug 7, 2023
98973a9
revise revision and checkpiont/cache dir
jinmang2 Aug 7, 2023
460bdf8
add hydra baseline
jinmang2 Aug 7, 2023
0d099dd
remove unused dependency
jinmang2 Aug 7, 2023
0380c78
upload new run script
jinmang2 Aug 7, 2023
c7b3b16
shorlty (device)
jinmang2 Aug 7, 2023
41ae7c2
remove blank lines
jinmang2 Aug 7, 2023
5607f40
add wandb logger
jinmang2 Aug 7, 2023
12c9475
add login wandb
jinmang2 Aug 7, 2023
41da1a2
add type info on runner
jinmang2 Aug 7, 2023
c9c1d72
add wandb logger name
jinmang2 Aug 7, 2023
405f5ff
revise wandb logger name
jinmang2 Aug 7, 2023
b92a896
remove unused num_workers
jinmang2 Aug 7, 2023
8d43a54
report wandb image and fix trainer logger/callbacks
jinmang2 Aug 18, 2023
43f9fa9
fix bug on callbacks
jinmang2 Aug 18, 2023
a07d440
adjust black
jinmang2 Aug 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add resample argument
jinmang2 committed Jun 28, 2023
commit d9626cb9e79f4f311e1de4e3c8f04aa5dff91473
3 changes: 2 additions & 1 deletion dataset.py
Original file line number Diff line number Diff line change
@@ -123,6 +123,7 @@ def __init__(
resize: int = 256,
cropsize: int = 224,
to_frame: str = "pyav",
resample: int = Image.BILINEAR,
):
to_frame = to_frame.lower()
assert to_frame in ("pyav", "ffmpeg")
@@ -164,7 +165,7 @@ def __init__(

self.transform = transforms.Compose(
[
gtransforms.GroupResize(size=resize),
gtransforms.GroupResize(size=resize, resample=resample),
gtransforms.GroupTenCrop(size=cropsize),
gtransforms.ToTensorTenCrop(),
gtransforms.GroupNormalizeTenCrop(),