Code Monkey home page Code Monkey logo

Comments (3)

mr-lab avatar mr-lab commented on August 23, 2024

put more effort will you . it's clearly objaverse . just look at "Dataset used to train" on huggingface .

from triposr.

fire avatar fire commented on August 23, 2024

Some of the cc-by licensed artwork in objaverse are incorrectly licensed so I wanted to check.

from triposr.

fire avatar fire commented on August 23, 2024

I have to go for now but I'll be working on a script to get a CC-BY csv with chatgpt.

# Work in progress
# Import necessary libraries
import pandas as pd
from objaverse.xl import objaverse_xl as oxl

def save_cc_by_licenses_as_csv(download_dir="~/.objaverse", output_file="cc_by_licenses.csv"):
    """
    Download annotations from Objaverse-XL and save entries with CC-BY licenses to a CSV file,
    using fileIdentifier as the unique identifier for each 3D object.
    
    Parameters:
    download_dir (str): Directory to cache the downloaded annotations. Defaults to "~/.objaverse".
    output_file (str): The name of the output CSV file. Defaults to "cc_by_licenses.csv".
    """
    
    # Download annotations
    annotations = oxl.get_annotations(download_dir=download_dir)
    
    # Filter for CC-BY licenses
    cc_by_annotations = annotations[annotations['license'] == 'CC-BY']
    
    # Ensure 'fileIdentifier' is used as a reference for each object
    # You might already have it directly from the annotations, this step is just to clarify its importance
    cc_by_annotations = cc_by_annotations[['fileIdentifier', 'source', 'license', 'fileType', 'sha256', 'metadata']]
    
    # Save to CSV
    cc_by_annotations.to_csv(output_file, index=False)
    print(f"Saved CC-BY licensed objects to {output_file} using fileIdentifier as the unique identifier.")

# Call the function
if __name__ == "__main__":
    save_cc_by_licenses_as_csv()

from triposr.

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.