Coder Social home page Coder Social logo

Comments (4)

ahmadyan avatar ahmadyan commented on May 18, 2024

I uploaded it again, it should be good to go.

from objectron.

stephanietsuei avatar stephanietsuei commented on May 18, 2024

Hi,

The 404 error is gone! However, I now get this error when my script processes the new annotation file:

myscript.py:38: RuntimeWarning: Unexpected end-group tag: Not all data was converted
  frame_data.ParseFromString(message_buf)
Traceback (most recent call last):
  File "myscript.py", line 83, in <module>
    sequence_geometry = get_geometry_data(geometry_file)
  File "myscript.py", line 41, in get_geometry_data
    transform = np.reshape(frame_data.camera.transform, (4, 4))
  File "<__array_function__ internals>", line 6, in reshape
  File "/home/stsuei/miniconda3/envs/fisher_uncertainty/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 299, in reshape
    return _wrapfunc(a, 'reshape', newshape, order=order)
  File "/home/stsuei/miniconda3/envs/fisher_uncertainty/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 55, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File "/home/stsuei/miniconda3/envs/fisher_uncertainty/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 44, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
ValueError: cannot reshape array of size 0 into shape (4,4)

The function get_geometry_data that is failing is copied from the Objectron Geometry Tutorial Jupyter notebook. It does not run into any problems on any of the other files in the batch.

Thank you for your help,
Stephanie

from objectron.

ahmadyan avatar ahmadyan commented on May 18, 2024

I cannot re-produce this. Could you double-check? (make sure you restart your notebook and delete previous local files perhaps?) Here is what I'm getting from the geometry tutorial notebook:

public_url = "https://storage.googleapis.com/objectron"
video_filename = public_url + "/videos/laptop/batch-39/38/video.MOV"
metadata_filename = public_url + "/videos/laptop/batch-39/38/geometry.pbdata"
annotation_filename = public_url + "/annotations/laptop/batch-39/38.pbdata"

image

from objectron.

stephanietsuei avatar stephanietsuei commented on May 18, 2024

Yes, it was my mistake. I forgot to redownload the video file and the geometry metadata file. Thanks!

from objectron.

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.