GithubHelp home page GithubHelp logo

DAVIS2018 does not exist about sttn HOT 4 OPEN

phananh1010 avatar phananh1010 commented on May 26, 2024
DAVIS2018 does not exist

from sttn.

Comments (4)

yzcv avatar yzcv commented on May 26, 2024

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.

diaodeyi avatar diaodeyi commented on May 26, 2024

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.

yzcv avatar yzcv commented on May 26, 2024

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.

ToscanaGoGithub avatar ToscanaGoGithub commented on May 26, 2024

你好,

我正在从您的链接中寻找 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.