Skip to content

Commit

Permalink
mv functions to gtad_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
frostinassiky committed Apr 15, 2020
1 parent ba68778 commit 8bc1678
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ venv.bak/

# mypy
.mypy_cache/

data/thumos_annotations/saved*
data/thumos_feature/TSN*
output/*
10 changes: 5 additions & 5 deletions gtad_inference.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import torch.nn.parallel
import numpy as np
import math
import opts
from models import GTAD
import numpy as np
import pandas as pd
import torch.nn.parallel

from dataset import VideoDataSet
from gtad_lib import opts
from gtad_lib.models import GTAD
from gtad_lib.dataset import VideoDataSet

if __name__ == '__main__':
opt = opts.parse_opt()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion gtad_postprocess.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import sys
import opts
import numpy as np
import pandas as pd
import json
import os
from joblib import Parallel, delayed

from gtad_lib import opts

thumos_class = {
7 : 'BaseballPitch',
9 : 'BasketballDunk',
Expand Down
11 changes: 6 additions & 5 deletions gtad_train.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from dataset import VideoDataSet
from loss_function import get_mask, subgraph_loss_func, node_loss_func
import os
import torch
import torch.nn.parallel
import torch.optim as optim
import numpy as np
import opts
from models import GTAD
from torch import autograd
import numpy as np

from gtad_lib import opts
from gtad_lib.models import GTAD
from gtad_lib.dataset import VideoDataSet
from gtad_lib.loss_function import get_mask, subgraph_loss_func, node_loss_func


################## fix everything ##################
Expand Down
Empty file removed uNet_test.npy
Empty file.

0 comments on commit 8bc1678

Please sign in to comment.