allenai / objaverse-xl

🪐 Objaverse-XL is a Universe of 10M+ 3D Objects. Contains API Scripts for Downloading and Processing!
https://objaverse.allenai.org/
Apache License 2.0
704 stars 40 forks source link

problem with downloading datase: SyntaxError: (repo_commit_hash=) #24

Open co1one opened 8 months ago

co1one commented 8 months ago

Thanks for the amazing work! But i have a problem when downloading the dataset:

image
import objaverse.xl as oxl

annotations = oxl.get_annotations(
    download_dir="~/.objaverse" # default download directory
)
annotations

print(annotations)

when im runing this code, i encountered this error:

Traceback (most recent call last):
  File "/home/ubuntu/Desktop/xxx/objaverse/test.py", line 2, in <module>
    import objaverse.xl as oxl
  File "/home/ubuntu/anaconda3/envs/rl/lib/python3.7/site-packages/objaverse/xl/__init__.py", line 7, in <module>
    from objaverse.xl.github import GitHubDownloader
  File "<fstring>", line 1
    (repo_commit_hash=)
                     ^
SyntaxError: invalid syntax

im on a ubuntu20.4

mattdeitke commented 8 months ago

Might need to use a newer version of Python that supports f-strings. Maybe try with Python >3.8 :)

co1one commented 8 months ago

May i ask again that what if i need to use a mirror huggingface , with link in the codebase i need to change? Thanks again!

The problem i met looks like this:

image image
ouceduxzk commented 1 month ago

pyhton 3.12 works, while 3.13 dont