Gary3410 commited on
Commit
391cab6
1 Parent(s): 8d465a0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import multiprocessing
2
+ import objaverse
3
+ import random
4
+
5
+ processes = multiprocessing.cpu_count()
6
+
7
+ uids = objaverse.load_uids()
8
+ random_object_uids = random.sample(uids, 100)
9
+
10
+ objects = objaverse.load_objects(
11
+ uids=random_object_uids,
12
+ download_processes=processes
13
+ )