Git Product home page Git Product logo

sunds's Introduction

Scene understanding datasets

Unittests PyPI version

SunDs is a collection of ready-to-use datasets for scene understanding tasks (3d object detection, semantic segmentation, nerf rendering,...). It provides:

  • An API to easily load datasets to feed into your ML models.
  • A collection of ready-to-use datasets.
  • Helper tools to create new datasets.
import sunds

ds = sunds.load('kubric:nerf_synthetic/lego', split='train', task=sunds.tasks.Nerf())
for ex in ds:
  ex['ray_origin']

To use sunds, see the documentation:

Load datasets

Some datasets are pre-processed and published directly in gs://kubric-public/tfds. You can stream them directly from GCS with:

sunds.load('kubric:nerf_synthetic/lego')

The kubric: prefix is just an alias for

sunds.load('nerf_synthetic/lego', data_dir='gs://kubric-public/tfds')

For best performance, it's recommended to copy the data locally with gsutil:

pip install gsutil  # Only once

# Download the `nerf_synthetic_frames` and `nerf_synthetic_scenes` datasets
DATA_DIR=~/tensorflow_datasets/
mkdir $DATA_DIR
gsutil -m cp -r gs://kubric-public/tfds/nerf_synthetic_*/ $DATA_DIR

After the data has been copied locally, it can be loaded directly.

sunds.load('nerf_synthetic/lego')

If you copy locally to another folder than ~/tensorflow_datasets/, you'll have to specify data_dir='/path/to/tfds/'.

This is not an official Google product.

sunds's People

Contributors

conchylicultor avatar rchen152 avatar tutmann avatar duckworthd avatar qwlouse avatar

Stargazers

Yeon Ji Song avatar Bernard Spiegl avatar Gareth avatar Ondrej Biza avatar  avatar Ifty Mohammad Rezwan avatar smellslikeml avatar Mona Jalal avatar Cheol-Hui Min avatar chicham avatar Bruno Henrique avatar  avatar Andrew Marmon avatar Ray avatar 爱可可-爱生活 avatar Zhengzhong Tu avatar  avatar Zehao Shi avatar Harry Zhao avatar  avatar Luke Barrington avatar Sani avatar Ahsen Khaliq avatar  avatar

Watchers

James Cloos avatar Maia Deutsch avatar  avatar  avatar

sunds's Issues

Loading any dataset fills up the entire GPU memory

Loading any dataset causes the entire GPU memory to be filled up (e.g. 0MiB / 49140MiB -> 47149MiB / 49140MiB). If I force it to load on CPU (with tf.device('/CPU:0')), it will be fine until I start to iterate over the dataset, at which point it will fill up the GPU memory again.

Minimal example:

import sunds
ds = sunds.load('kubric:nerf_synthetic/lego', split='train', task=sunds.tasks.Nerf())

Output:

2023-02-06 23:02:15.160292: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1613] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 46653 MB memory:  -> device: 0, name: NVIDIA RTX A6000, pci bus id: 0000:3b:00.0, compute capability: 8.6
WARNING:tensorflow:From /data/vision/polina/users/clintonw/anaconda3/envs/nerfstudio/lib/python3.8/site-packages/tensorflow/python/autograph/pyct/static_analysis/liveness.py:83: Analyzer.lamba_check (from tensorflow.python.autograph.pyct.static_analysis.liveness) is deprecated and will be removed after 2023-09-23.
Instructions for updating:
Lambda fuctions will be no more assumed to be used in the statement where they are used, or at least in the same block. https://github.com/tensorflow/tensorflow/issues/56089

Not a hardware issue (it occurs on different machines).
Environment: packages.txt

how to use sunds to load

when I use sunds load MSN datasets,it costs too much VRAM in my computer. how to solve this problem or can sunds just load a part of the datasets?

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.