Skip to content

Commit

Permalink
Limit video output conversions to just 3 formats that we know will wo…
Browse files Browse the repository at this point in the history
…rk with comfyUI agent.
  • Loading branch information
Layoric committed Oct 9, 2024
1 parent 5378462 commit bd58eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 73 deletions.
8 changes: 1 addition & 7 deletions AiServer.ServiceModel/QueueMediaTransforms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,8 @@ public enum ConvertVideoOutputFormat
MP4,
[EnumMember(Value = "avi")]
AVI,
[EnumMember(Value = "mkv")]
MKV,
[EnumMember(Value = "mov")]
MOV,
[EnumMember(Value = "webm")]
WebM,
[EnumMember(Value = "gif")]
GIF
MOV
}

[DataContract]
Expand Down
68 changes: 2 additions & 66 deletions AiServer.Tests/ComfyAdminTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,70 +12,6 @@ public class ComfyAdminTasks
{
private static bool useLocal = true;
private ConfigureSecrets ConfigureSecrets = new();

public static Dictionary<string, ComfyApiModelSettings> ImportCivitAiModelSettings = new()
{
{
"https://civitai.com/models/194768/jib-mix-realistic-xl?modelVersionId=610292",
new ComfyApiModelSettings
{
Height = 1024,
Width = 1024,
Sampler = ComfySampler.euler_ancestral,
Scheduler = "karras",
CfgScale = 6.0,
Steps = 18
}
},
{
"https://civitai.com/models/553410/crazycaricaturesxl?modelVersionId=615871",
new ComfyApiModelSettings
{
Height = 1024,
Width = 1024,
Sampler = ComfySampler.euler_ancestral,
Scheduler = "normal",
CfgScale = 8.0,
Steps = 18
}
},
{
"https://civitai.com/models/129403?modelVersionId=259194",
new ComfyApiModelSettings
{
Height = 1024,
Width = 1024,
Sampler = ComfySampler.euler_ancestral,
Scheduler = "normal",
CfgScale = 3.0,
Steps = 12
}
},
{
"https://civitai.com/models/157665/lah-hongchen-or-sdxl-and-sd15",
new ComfyApiModelSettings
{
Height = 1024,
Width = 1024,
Sampler = ComfySampler.euler,
Scheduler = "normal",
CfgScale = 1.0,
Steps = 8
}
},
{
"https://civitai.com/models/350352?modelVersionId=391971",
new ComfyApiModelSettings
{
Height = 1024,
Width = 1024,
Sampler = ComfySampler.euler,
Scheduler = "normal",
CfgScale = 1.0,
Steps = 8
}
}
};

private static List<CreateMediaProvider> MediaProviders = new List<CreateMediaProvider>
{
Expand All @@ -88,7 +24,7 @@ public class ComfyAdminTasks
HeartbeatUrl = "https://api.replicate.com/",
ApiBaseUrl = "https://api.replicate.com/",
Models = new List<string> { "flux1-dev","flux1-schnell" },
MediaTypeId = 1
MediaTypeId = "ConfyUI"
},
new()
{
Expand All @@ -105,7 +41,7 @@ public class ComfyAdminTasks
"animexlXuebimix_v60LCM.safetensors",
"LahHongchenSDXLSD15_xlLightning.safetensors"
},
MediaTypeId = 2
MediaTypeId = "ComfyUI"
}
};

Expand Down

0 comments on commit bd58eb5

Please sign in to comment.