Comments (5)
import pickle
f = open('pyannot.pkl','rb')
data = pickle.load(f)
data: a dict, with relative videopath as key. Example key: 'BasketballDunk/v_BasketballDunk_g01_c03'
data[videopath]['label'] # categroy index, from 0 ~ 23 for UCF24 (int)
data[videopath]['numf'] # number of frames in the video. (numpy,uint32)
data[videopath]['annotations'][Tube_INDEX]['sf'] # *** tube start-frame, 0 denotes 1-st frame (int)
data[videopath]['annotations'][Tube_INDEX]['ef'] # *** tube end-frame (my understanding: "ef" is not included), maxmum 'numf' (int)
data[videopath]['annotations'][Tube_INDEX]['label'] # tube label (int)
data[videopath]['annotations'][Tube_INDEX]['boxes'] # tube boxes, len(boxes) should be the same with ef - sf
Tube_INDEX denotes index number of a tube intance in a video
xmin = box[0]
xmax = box[0] + box[2]
ymin = box[1]
ymax = box[1] + box[3]
xmin and xmax both are in range [1, 320], (width = 320)
ymin and ymax both are in range [1, 240], (height = 240)
I am not sure whether the *** part is correct ? @gurkirt
from realtime-action-detection.
- it doesn't have to be in this format. You can have any format you like. All you need to understand is how pytorch's dataset class work. You need to implement getitem call for any new dataset rest is upto you.
- you might want to look at folder dataset class in pytorch.
from realtime-action-detection.
@zhanghaoinf I don't understand your question completely. What do you mean by ***?
But, yes, xmin and xmax both are in range [1, 320], (width = 320) .....
from realtime-action-detection.
Hi, @gurkirt , I found when a tube span in a whole video duration, 'sf' is set to 0 and 'ef' is set to 'numf''.
If 'ef' is included, frame indexes will be [0,1,2,..., numf ], resulting indexing a non-existing frame. I guess that 'ef' is not included in a tube, and frame indexes is [0, 1, 2, ..., ef-1].
from realtime-action-detection.
yes, python index = range(numf) does that for you.
from realtime-action-detection.
Related Issues (20)
- Problem in running HOT 3
- Question about label/ HOT 4
- problems about the results HOT 1
- problems about test just useing one action of ucf24 which you provided HOT 3
- Testing detection using much more time than proposed in the paper HOT 1
- Detection box HOT 2
- will it work for multivariate time series classification for example mixture of categorical and continues data? HOT 10
- pytorch=1.2.0 ,I got a error. I hope to get your help HOT 2
- About reported results HOT 1
- problem with loading pretrained weights for custom dataset with different number of classes HOT 1
- Testing Pre-trained models HOT 4
- Did you implement the evaluation of action early prediction in the paper HOT 3
- About inference HOT 1
- about demo? HOT 1
- Real time implementation HOT 1
- How fast this repo? HOT 1
- colab version? HOT 1
- Error in Evaluation HOT 1
- Where is Viterbi algorithm in your code? HOT 1
- Download of pretrained brox flow trained model weights HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realtime-action-detection.