WenhaoWang commited on
Commit
5d44dc2
1 Parent(s): e72c0ae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -99,6 +99,20 @@ wget https://huggingface.co/datasets/WenhaoWang/VidProM/resolve/main/VidProM_uni
99
 
100
  ``VidProM_embed.hdf5`` is the 3072-dim embeddings of our prompts. They are embedded by text-embedding-3-large, which is the latest text embedding model of OpenAI.
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  ``original_files`` are the HTML files collected by DiscordChatExporter.
103
 
104
  ``pika_videos``, ``vc2_videos``, ``t2vz_videos``, and ``ms_videos`` are the generated videos by 4 state-of-the-art text-to-video diffusion models. Each contains 30 tar files.
 
99
 
100
  ``VidProM_embed.hdf5`` is the 3072-dim embeddings of our prompts. They are embedded by text-embedding-3-large, which is the latest text embedding model of OpenAI.
101
 
102
+ It can easily read by
103
+
104
+ ```
105
+ import numpy as np
106
+ import h5py
107
+ def read_descriptors(filename):
108
+ hh = h5py.File(filename, "r")
109
+ descs = np.array(hh["embeddings"])
110
+ names = np.array(hh["uuid"][:], dtype=object).astype(str).tolist()
111
+ return names, descs
112
+
113
+ uuid, features = read_descriptors('VidProM_embed.hdf5')
114
+ ```
115
+
116
  ``original_files`` are the HTML files collected by DiscordChatExporter.
117
 
118
  ``pika_videos``, ``vc2_videos``, ``t2vz_videos``, and ``ms_videos`` are the generated videos by 4 state-of-the-art text-to-video diffusion models. Each contains 30 tar files.