Datasets:

Languages:
English
ArXiv:
License:
mattdeitke commited on
Commit
be6382e
1 Parent(s): db59e0b

autoformat

Browse files
objaverse_xl/abstract.py CHANGED
@@ -1,7 +1,7 @@
1
  from abc import ABC, abstractmethod
2
- import pandas as pd
3
 
4
- from typing import Optional, Callable
5
 
6
 
7
  class ObjaverseSource(ABC):
 
1
  from abc import ABC, abstractmethod
2
+ from typing import Callable, Optional
3
 
4
+ import pandas as pd
5
 
6
 
7
  class ObjaverseSource(ABC):
objaverse_xl/github.py CHANGED
@@ -9,8 +9,6 @@ import tarfile
9
  import tempfile
10
  from multiprocessing import Pool
11
  from typing import Callable, Dict, List, Literal, Optional
12
- from objaverse_xl.utils import get_file_hash
13
- from objaverse_xl.abstract import ObjaverseSource
14
 
15
  import fsspec
16
  import pandas as pd
@@ -18,6 +16,9 @@ import requests
18
  from loguru import logger
19
  from tqdm import tqdm
20
 
 
 
 
21
  FILE_EXTENSIONS = [
22
  ".obj",
23
  ".glb",
 
9
  import tempfile
10
  from multiprocessing import Pool
11
  from typing import Callable, Dict, List, Literal, Optional
 
 
12
 
13
  import fsspec
14
  import pandas as pd
 
16
  from loguru import logger
17
  from tqdm import tqdm
18
 
19
+ from objaverse_xl.abstract import ObjaverseSource
20
+ from objaverse_xl.utils import get_file_hash
21
+
22
  FILE_EXTENSIONS = [
23
  ".obj",
24
  ".glb",
objaverse_xl/objaverse_v1.py CHANGED
@@ -2,21 +2,22 @@
2
 
3
  import gzip
4
  import json
 
5
  import os
 
6
  import urllib.request
7
- import multiprocessing
8
  from multiprocessing import Pool
9
- from typing import Any, Dict, List, Optional, Tuple, Callable
10
- import requests
11
- import pandas as pd
12
- import tempfile
13
- from objaverse_xl.utils import get_file_hash
14
- from objaverse_xl.abstract import ObjaverseSource
15
 
16
  import fsspec
 
 
17
  from loguru import logger
18
  from tqdm import tqdm
19
 
 
 
 
20
 
21
  class SketchfabDownloader(ObjaverseSource):
22
  """A class for downloading and processing Objaverse 1.0."""
 
2
 
3
  import gzip
4
  import json
5
+ import multiprocessing
6
  import os
7
+ import tempfile
8
  import urllib.request
 
9
  from multiprocessing import Pool
10
+ from typing import Any, Callable, Dict, List, Optional, Tuple
 
 
 
 
 
11
 
12
  import fsspec
13
+ import pandas as pd
14
+ import requests
15
  from loguru import logger
16
  from tqdm import tqdm
17
 
18
+ from objaverse_xl.abstract import ObjaverseSource
19
+ from objaverse_xl.utils import get_file_hash
20
+
21
 
22
  class SketchfabDownloader(ObjaverseSource):
23
  """A class for downloading and processing Objaverse 1.0."""
objaverse_xl/smithsonian.py CHANGED
@@ -2,9 +2,9 @@
2
 
3
  import multiprocessing
4
  import os
5
- from multiprocessing import Pool
6
- from typing import Dict, Optional, Tuple, Callable
7
  import tempfile
 
 
8
 
9
  import fsspec
10
  import pandas as pd
@@ -12,8 +12,8 @@ import requests
12
  from loguru import logger
13
  from tqdm import tqdm
14
 
15
- from objaverse_xl.utils import get_uid_from_str, get_file_hash
16
  from objaverse_xl.abstract import ObjaverseSource
 
17
 
18
 
19
  class SmithsonianDownloader(ObjaverseSource):
 
2
 
3
  import multiprocessing
4
  import os
 
 
5
  import tempfile
6
+ from multiprocessing import Pool
7
+ from typing import Callable, Dict, Optional, Tuple
8
 
9
  import fsspec
10
  import pandas as pd
 
12
  from loguru import logger
13
  from tqdm import tqdm
14
 
 
15
  from objaverse_xl.abstract import ObjaverseSource
16
+ from objaverse_xl.utils import get_file_hash, get_uid_from_str
17
 
18
 
19
  class SmithsonianDownloader(ObjaverseSource):
objaverse_xl/thingiverse.py CHANGED
@@ -2,12 +2,10 @@
2
 
3
  import multiprocessing
4
  import os
 
5
  import time
6
  from multiprocessing import Pool
7
- from typing import Dict, Optional, Tuple, Callable
8
- import tempfile
9
- from objaverse_xl.utils import get_file_hash
10
- from objaverse_xl.abstract import ObjaverseSource
11
 
12
  import fsspec
13
  import pandas as pd
@@ -15,6 +13,9 @@ import requests
15
  from loguru import logger
16
  from tqdm import tqdm
17
 
 
 
 
18
 
19
  class ThingiverseDownloader(ObjaverseSource):
20
  """Script to download objects from Thingiverse."""
 
2
 
3
  import multiprocessing
4
  import os
5
+ import tempfile
6
  import time
7
  from multiprocessing import Pool
8
+ from typing import Callable, Dict, Optional, Tuple
 
 
 
9
 
10
  import fsspec
11
  import pandas as pd
 
13
  from loguru import logger
14
  from tqdm import tqdm
15
 
16
+ from objaverse_xl.abstract import ObjaverseSource
17
+ from objaverse_xl.utils import get_file_hash
18
+
19
 
20
  class ThingiverseDownloader(ObjaverseSource):
21
  """Script to download objects from Thingiverse."""
objaverse_xl/utils.py CHANGED
@@ -1,8 +1,8 @@
1
  """Utility functions for the objaverse_xl package."""
2
 
3
- import uuid
4
- import os
5
  import hashlib
 
 
6
 
7
 
8
  def get_uid_from_str(string: str) -> str:
 
1
  """Utility functions for the objaverse_xl package."""
2
 
 
 
3
  import hashlib
4
+ import os
5
+ import uuid
6
 
7
 
8
  def get_uid_from_str(string: str) -> str: