##Sequence to Sequence -- Video to Text
Paper : ICCV 2015 PDF
Download Model: S2VT_VGG_RGB_MODEL (333MB)
| import tensorflow as tf | |
| import numpy as np | |
| def smoothed_metric_loss(input_tensor, name='smoothed_triplet_loss', margin=1): | |
| ''' | |
| input_tensor: require a tensor with predefined dimensions (No None dimension) | |
| Every two consecutive vectors must be a positive pair. There | |
| should not be more than one pair from each class. | |
| ''' | |
| with tf.variable_scope(name): |
| import torch | |
| import torch.nn as nn | |
| import numpy as np | |
| import torch.optim as optim | |
| from torch.autograd import Variable | |
| # (1, 0) => target labels 0+2 | |
| # (0, 1) => target labels 1 | |
| # (1, 1) => target labels 3 | |
| train = [] |
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
##Sequence to Sequence -- Video to Text
Paper : ICCV 2015 PDF
Download Model: S2VT_VGG_RGB_MODEL (333MB)
| Binxing Fang, http://en.wikipedia.org/wiki/Fang_Binxing | |
| 方滨兴,中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网 络方向首席科学家。 | |
| Gang Xiong, http://rd.springer.com/search?facet-author=%22Gang+Xiong%22 | |
| 熊刚, 高级工程师, 研究方向为信息安全。E-mail: xionggang@ict.ac.cn。 | |
| Weili Han, http://crypto.fudan.edu.cn/people/weili/ | |
| 韩伟力, http://homepage.fudan.edu.cn/wlhan/en | |
| This is just my personal gist clip. |
| #!/usr/bin/expect | |
| set timeout 60 | |
| spawn /usr/bin/ssh -D 7070 -g username@yourserver.com | |
| #这里的 username 为你自己的用户名,yourserver.com 为你自己的服务器域名或ip | |
| expect { | |
| "password:" { | |
| send "password\r" | |
| #将第二个 password 改为你自己的密码 | |
| } |