You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/api/models.py
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -249,3 +249,13 @@ class ArtistItem(BaseModel):
249
249
score: float=Field(title="Score")
250
250
category: str=Field(title="Category")
251
251
252
+
classEmbeddingItem(BaseModel):
253
+
step: Optional[int] =Field(title="Step", description="The number of steps that were used to train this embedding, if available")
254
+
sd_checkpoint: Optional[str] =Field(title="SD Checkpoint", description="The hash of the checkpoint this embedding was trained on, if available")
255
+
sd_checkpoint_name: Optional[str] =Field(title="SD Checkpoint Name", description="The name of the checkpoint this embedding was trained on, if available. Note that this is the name that was used by the trainer; for a stable identifier, use `sd_checkpoint` instead")
256
+
shape: int=Field(title="Shape", description="The length of each individual vector in the embedding")
257
+
vectors: int=Field(title="Vectors", description="The number of vectors in the embedding")
258
+
259
+
classEmbeddingsResponse(BaseModel):
260
+
loaded: Dict[str, EmbeddingItem] =Field(title="Loaded", description="Embeddings loaded for the current model")
261
+
skipped: Dict[str, EmbeddingItem] =Field(title="Skipped", description="Embeddings skipped for the current model (likely due to architecture incompatibility)")
0 commit comments