Comments (3)
parser = argparse.ArgumentParser(description="extract optical flows")
parser.add_argument("--src_dir", default='./dataset/shanghaitech/videos/training')
parser.add_argument("--out_dir", default='./dataset/shanghaitech/dense_flow/training')
parser.add_argument("--num_worker", type=int, default=32)
parser.add_argument("--flow_type", type=str, default='tvl1', choices=['tvl1', 'warp_tvl1'])
parser.add_argument("--df_path", type=str, default='./dense_flow/', help='path to the dense_flow toolbox')
parser.add_argument("--out_format", type=str, default='zip', choices=['dir','zip'],
help='path to the dense_flow toolbox')
parser.add_argument("--ext", type=str, default='avi', choices=['avi','mp4'], help='video file extensions')
parser.add_argument("--new_width", type=int, default=320, help='resize image width')
parser.add_argument("--new_height", type=int, default=240, help='resize image height')
parser.add_argument("--num_gpu", type=int, default=2, help='number of GPU')
parser.add_argument("--resume", type=str, default='yes', choices=['yes','no'], help='resume optical flow extraction instead of overwriting')
我们的设置,全部采用默认
from anomly_feature.pytorch.
cmd = os.path.join(df_path + 'build/extract_warp_gpu')+' -f={} -x={} -y={} -b=20 -t=1 -d={} -s=1 -o={}'.format(
vid_path, flow_x_path, flow_y_path, dev_id, out_format)
from anomly_feature.pytorch.
你好,我也遇见了光流比RGB多一帧的情况,会影响到后续的工作,请问你解决这个问题了吗
from anomly_feature.pytorch.
Related Issues (10)
- anomly_feature HOT 1
- Incompatible Features
- Videos_to_frames_multiprocessing. py HOT 2
- 运行feature_extract.py时抛出forward() got an unexpected keyword argument 'feature_layer' HOT 2
- shanghaiTech Dataset HOT 4
- 'feature_layer' in feature_extract.py HOT 1
- Where is the models.py file? HOT 3
- I3D rgb and optical flow festures of UCF-crime HOT 1
- feature_extract.py HOT 1
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 anomly_feature.pytorch.