gqn-datasets icon indicating copy to clipboard operation
gqn-datasets copied to clipboard

Fix runtime error induced by #18

Open cpacker opened this issue 2 years ago • 1 comments

https://github.com/deepmind/gqn-datasets/pull/18 creates a runtime NameError (pops up when you run the demo code). This is a small patch to fix it.

Traceback (most recent call last):
  File "demo_code.py", line 5, in <module>
    data_reader = DataReader(dataset='rooms_free_camera_no_object_rotations', context_size=5, root=root_path)
  File "data_reader.py", line 182, in __init__
    for _ in range(num_threads)]
  File "data_reader.py", line 182, in <listcomp>
    for _ in range(num_threads)]
  File "data_reader.py", line 219, in _make_read_op
    indices = self._get_randomized_indices(seed)
NameError: name 'seed' is not defined

cpacker avatar Feb 27 '22 19:02 cpacker

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

google-cla[bot] avatar Feb 27 '22 19:02 google-cla[bot]