NVIDIAGameWorks / NVIDIAGameWorks/kaolin

Running Kaolin demo tutorials in Google Colab

Open
#489 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
Dominant language
Python
Stars
5.2k
Forks
629
Avg merge
53m
Merged PRs (30d)
2

Description

Hi!
I'm attempting to run Kaolin in Google Colab and I get to an error that says "num_views" is set to 0... I am suspecting that this is a directory error but I'm having trouble spotting how to fix it. Any help would be appreciated being that I'm new to Kaolin and getting my bearings using colab. Here is a link to the notebook producing the error.
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in ()
7
8 dataloader = torch.utils.data.DataLoader(train_data, batch_size=batch_size,
----> 9 shuffle=True, pin_memory=True)

1 frames
/usr/local/lib/python3.7/dist-packages/torch/utils/data/sampler.py in init(self, data_source, replacement, num_samples, generator)
101 if not isinstance(self.num_samples, int) or self.num_samples <= 0:
102 raise ValueError("num_samples should be a positive integer "
--> 103 "value, but got num_samples={}".format(self.num_samples))
104
105 @property
`
https://colab.research.google.com/gist/gschian0/493c56c66eab3785f1c4be8eb00da89d/kaolin-setup-fix.ipynb

Thanks for any help in advance!!
Gennaro Schiano

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Google Colab notebook, especially its setup and dataset-loading cells, and reproduce the DataLoader failure. Trace why the loaded dataset reports zero samples—the traceback shows num_samples=0—and confirm the training-data setup produces a positive sample count. Done means the demo runs past DataLoader creation in Colab.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.