Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in kubasic and stucked when generating robust_nerf dataset #340

Open
guanjunwu opened this issue Dec 2, 2024 · 0 comments
Open

Bug in kubasic and stucked when generating robust_nerf dataset #340

guanjunwu opened this issue Dec 2, 2024 · 0 comments

Comments

@guanjunwu
Copy link

guanjunwu commented Dec 2, 2024

Dear authors,
thanks for your great work! I want to use robust_nerf to generate a nerf format dataset, and I faced following problems:

  1. When I try to generate kubasic file, the error report:
docker run --rm --interactive \
           --user $(id -u):$(id -g) \                                                              
           --volume "$(pwd):/kubric" \                                                             
           kubricdockerhub/kubruntu \                                                              
           /usr/bin/python3 kubric/scripts/kubasic.py                                              
pybullet build time: Mar 26 2022 03:01:35
INFO:root:Inferred name from scene path as KuBasic_v1.0
INFO:root:Inferred version from name as 1.0 and shortened name to KuBasic
INFO:root:name = KuBasic and version = 1.0
INFO:root:Converting KuBasic_v1.0.blend into asset source format in directory Assets/KuBasic
INFO:root:Resetting Blender and loading scene KuBasic_v1.0.blend
Traceback (most recent call last):
  File "/kubric/kubric/scripts/kubasic.py", line 204, in <module>
Error: Cannot read file 'KuBasic_v1.0.blend': No such file or directory
Error: Cannot read file 'KuBasic_v1.0.blend': No such file or directory
    main(FLAGS.output_dir, FLAGS.scene_path, FLAGS.name, FLAGS.version)
  File "/kubric/kubric/scripts/kubasic.py", line 177, in main
    bpy.ops.wm.open_mainfile(filepath=str(scene_path))
  File "/usr/local/lib/python3.9/dist-packages/2.93/scripts/modules/bpy/ops.py", line 132, in __call__
    ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Cannot read file 'KuBasic_v1.0.blend': No such file or directory
  1. When running robust_nerf dataset generator, the program stucked in :
(base) ➜ kubric docker run --rm --interactive \
           --user $(id -u):$(id -g) \
           --volume "$(pwd):/kubric" \
           kubricdockerhub/kubruntu \
           /usr/bin/python3 challenges/robust_nerf/worker.py --seed 42


INFO:kubric.utils:{ 'assets_path': 'gs://kubric-public/assets/KuBasic.json',
  'background_color': 'white',
  'floor_color': 'gray',
  'floor_friction': 0.3,
  'frame_end': 301,
  'frame_rate': 12,
  'frame_start': 1,
  'jitter': False,
  'job_dir': 'output',
  'logging_level': 'INFO',
  'norender': False,
  'num_objects_dynamic': 3,
  'num_objects_static': 5,
  'object_colors': 'clevr',
  'object_sizes': 'clevr',
  'object_types': ['cube', 'cylinder', 'sphere', 'torus', 'gear'],
  'resolution': (256, 256),
  'scratch_dir': '/tmp/tmpsf18a_wp',
  'seed': 42,
  'step_rate': 240}
INFO:root:Deleting content of old scratch-dir: /tmp/tmpsf18a_wp
INFO:root:Using scratch directory: /tmp/tmpsf18a_wp
INFO:root:Using output directory: output
INFO:root:Loading assets from gs://kubric-public/assets/KuBasic.json
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B

Traceback (most recent call last):
  File "/kubric/challenges/robust_nerf/worker.py", line 513, in <module>
    main(flags=parse_flags())
  File "/kubric/challenges/robust_nerf/worker.py", line 253, in main
    kubasic = kb.AssetSource.from_manifest(flags.assets_path)
  File "/usr/local/lib/python3.9/dist-packages/kubric/assets/asset_source.py", line 74, in from_manifest
    manifest = file_io.read_json(manifest_path)
  File "/usr/local/lib/python3.9/dist-packages/kubric/file_io.py", line 83, in read_json
    return json.load(fp, )
  File "/usr/lib/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/local/lib/python3.9/dist-packages/tensorflow/python/lib/io/file_io.py", line 116, in read
    length = self.size() - self.tell()
  File "/usr/local/lib/python3.9/dist-packages/tensorflow/python/lib/io/file_io.py", line 95, in size
    return stat(self.__name).length
  File "/usr/local/lib/python3.9/dist-packages/tensorflow/python/lib/io/file_io.py", line 906, in stat
    return stat_v2(filename)
  File "/usr/local/lib/python3.9/dist-packages/tensorflow/python/lib/io/file_io.py", line 922, in stat_v2
    return _pywrap_file_io.Stat(compat.path_to_str(path))
tensorflow.python.framework.errors_impl.AbortedError: All 10 retry attempts failed. The last failure: Error executing an HTTP request: libcurl code 42 meaning 'Operation was aborted by an application callback', error details: Callback aborted
         when reading metadata of gs://kubric-public/assets/KuBasic.json
Error: Not freed memory blocks: 1, total unfreed memory 0.001259 MB

How can I solve it?

Best regrads,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant