GithubHelp home page GithubHelp logo

how to use my own dataset about ast HOT 3 OPEN

wlssyuu avatar wlssyuu commented on August 17, 2024
how to use my own dataset

from ast.

Comments (3)

p4vlos avatar p4vlos commented on August 17, 2024 1

Hi @wlssyuu,

According to the documentation, you should set your JSON file to the same structure as @YuanGongND 's JSON file.

Here is the author's JSON file example:

 # this is just an sample, if you only use audio, 'video_id' and 'image' entries are not necessary.
 {
    "data": [
        {
            "video_id": "--4gqARaEJE",
            "wav": "/data/sls/audioset/data/audio/eval/_/_/--4gqARaEJE_0.000.flac",
            "image": "/data/sls/audioset/data/images/eval/_/_/--4gqARaEJE_5.000.jpg",
            "labels": "/m/068hy,/m/07q6cd_,/m/0bt9lr,/m/0jbk"
        },
        {
            "video_id": "--BfvyPmVMo",
            "wav": "/data/sls/audioset/data/audio/eval/_/_/--BfvyPmVMo_20.000.flac",
            "image": "/data/sls/audioset/data/images/eval/_/_/--BfvyPmVMo_25.000.jpg",
            "labels": "/m/03l9g"
        },
        {
            "video_id": "--U7joUcTCo",
            "wav": "/data/sls/audioset/data/audio/eval/_/_/--U7joUcTCo_0.000.flac",
            "image": "/data/sls/audioset/data/images/eval/_/_/--U7joUcTCo_5.000.jpg",
            "labels": "/m/01b_21"
        },
        {
            "video_id": "--i-y1v8Hy8",
            "wav": "/data/sls/audioset/data/audio/eval/_/_/--i-y1v8Hy8_0.000.flac",
            "image": "/data/sls/audioset/data/images/eval/_/_/--i-y1v8Hy8_4.500.jpg",
            "labels": "/m/04rlf,/m/09x0r,/t/dd00004,/t/dd00005"
        },
        {
            "video_id": "-0BIyqJj9ZU",
            "wav": "/data/sls/audioset/data/audio/eval/_/0/-0BIyqJj9ZU_30.000.flac",
            "image": "/data/sls/audioset/data/images/eval/_/0/-0BIyqJj9ZU_35.000.jpg",
            "labels": "/m/07rgt08,/m/07sq110,/t/dd00001"
        }
    ]
}

from ast.

YuanGongND avatar YuanGongND commented on August 17, 2024

@p4vlos thanks so much for the clarification!

from ast.

moon-aver avatar moon-aver commented on August 17, 2024

@wlssyuu hello. I am curious if you have solved this problem and run the AST code using the desired dataset. Also, I would like to use the dataset structure described in json. Can you share which dataset you used?

from ast.

Related Issues (20)

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.