Comments (4)
Hi, there,
I've written a short python file to process the youtube-vos folders into zips. You may refer to this for processing the Davis dataset.
import os
import zipfile
def zipDir(dirpath, outFullName):
zipname = zipfile.ZipFile(outFullName, 'w', zipfile.ZIP_DEFLATED)
for path, dirnames, filenames in os.walk(dirpath):
fpath= path.replace(dirpath, '')
for filename in filenames:
zipname.write(os.path.join(path, filename), os.path.join(fpath, filename))
zipname.close()
if __name__=="__main__":
g=os.walk('/home/yz/Downloads/STTN/datasets/youtube-vos/train_all_frames/JPEGImages')
for path, dir_list, file_list in g:
for dir_name in dir_list:
input_path = os.path.join(path,dir_name)
output_path = '/home/yz/Downloads/STTN/datasets/youtube-vos/JPEGImages/'+dir_name+'.zip'
print(input_path, '\n', output_path)
zipDir(input_path, output_path)
from sttn.
Hi, there,
I've written a short python file to process the youtube-vos folders into zips. You may refer to this for processing the Davis dataset.
import os import zipfile def zipDir(dirpath, outFullName): zipname = zipfile.ZipFile(outFullName, 'w', zipfile.ZIP_DEFLATED) for path, dirnames, filenames in os.walk(dirpath): fpath= path.replace(dirpath, '') for filename in filenames: zipname.write(os.path.join(path, filename), os.path.join(fpath, filename)) zipname.close() if __name__=="__main__": g=os.walk('/home/yz/Downloads/STTN/datasets/youtube-vos/train_all_frames/JPEGImages') for path, dir_list, file_list in g: for dir_name in dir_list: input_path = os.path.join(path,dir_name) output_path = '/home/yz/Downloads/STTN/datasets/youtube-vos/JPEGImages/'+dir_name+'.zip' print(input_path, '\n', output_path) zipDir(input_path, output_path)
I think your srcipt need to improve , some image in the youtube-vos don't seem to be start from 1. So when use the dataset.py in STTN. It may be wrong.
from sttn.
Hi, there,
I've written a short python file to process the youtube-vos folders into zips. You may refer to this for processing the Davis dataset.import os import zipfile def zipDir(dirpath, outFullName): zipname = zipfile.ZipFile(outFullName, 'w', zipfile.ZIP_DEFLATED) for path, dirnames, filenames in os.walk(dirpath): fpath= path.replace(dirpath, '') for filename in filenames: zipname.write(os.path.join(path, filename), os.path.join(fpath, filename)) zipname.close() if __name__=="__main__": g=os.walk('/home/yz/Downloads/STTN/datasets/youtube-vos/train_all_frames/JPEGImages') for path, dir_list, file_list in g: for dir_name in dir_list: input_path = os.path.join(path,dir_name) output_path = '/home/yz/Downloads/STTN/datasets/youtube-vos/JPEGImages/'+dir_name+'.zip' print(input_path, '\n', output_path) zipDir(input_path, output_path)I think your srcipt need to improve , some image in the youtube-vos don't seem to be start from 1. So when use the dataset.py in STTN. It may be wrong.
Your are right. Thanks for pointing this out. : )
from sttn.
你好,
我正在从您的链接中寻找 Davis-2018,但那里的所有数据集都没有 zip 文件。目前,您的代码不适用于 Davis 数据集。
是因为他们删除了 Davis-2018 数据集,还是因为链接不正确?无论哪种方式,请您检查一下。
谢谢, 安
Hello,
I am looking for the Davis-2018 from your link but all the datasets there do not have zip files. Currently, you code does not work for the Davis datasets.
Is it because they remove the Davis-2018 dataset, or is it because the link was incorrect? Either way, can you please check it.
Thanks, Anh
Hello, do you know how to get the DAVIS2018 dataset?
from sttn.
Related Issues (15)
- Could you share other pretrained model? HOT 1
- Trained model performance HOT 2
- IndexError: index 1 is out of bounds for dimension 0 with size 1
- How to increase the output size as large as the input size HOT 1
- how to change the output video size
- Youtube-VOS HOT 2
- sample_length = 5?
- Training with custom dataset and masks HOT 1
- How to calculate Ewarp? HOT 1
- About train
- output resolution? HOT 9
- Out of CUDA memory when training HOT 3
- Would training only a sequence of frames from a video improve the training speed?
- Missing dis.pth and opt.pth files for fine-tuning
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 sttn.