File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
StabilityMatrix.Core/Models/Packages Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,12 @@ await PrerequisiteHelper
113113 var config = new PipInstallConfig
114114 {
115115 RequirementsFilePaths = [ "sd-scripts/requirements.txt" , "requirements.txt" ] ,
116- RequirementsExcludePattern = "(torch|torchvision|torchaudio|xformers|bitsandbytes)" ,
116+ RequirementsExcludePattern =
117+ "(diffusers\\ [torch\\ ]==0.32.1|torch|torchvision|torchaudio|xformers|bitsandbytes|-e\\ s\\ .)" ,
117118 TorchaudioVersion = " " ,
118119 CudaIndex = isLegacyNvidiaGpu ? "cu126" : "cu128" ,
119120 ExtraPipArgs = [ "bitsandbytes>=0.46.0" ] ,
121+ PostInstallPipArgs = [ "diffusers[torch]==0.32.1" ] ,
120122 } ;
121123
122124 await StandardPipInstallProcessAsync (
@@ -129,6 +131,8 @@ await StandardPipInstallProcessAsync(
129131 cancellationToken
130132 )
131133 . ConfigureAwait ( false ) ;
134+
135+ await venvRunner . PipInstall ( [ "-e" , "./sd-scripts" ] , onConsoleOutput ) . ConfigureAwait ( false ) ;
132136 }
133137
134138 public override async Task RunPackage (
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ public override async Task InstallPackage(
119119 CudaIndex = isLegacyNvidia ? "cu126" : "cu128" ,
120120 UpgradePackages = true ,
121121 ExtraPipArgs = extraArgs ,
122+ PostInstallPipArgs = [ "numpy==1.26.4" ] ,
122123 } ;
123124
124125 await StandardPipInstallProcessAsync (
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ IPyInstallationManager pyInstallationManager
4040
4141 public override string Blurb => "Professional Creative Tools for Stable Diffusion" ;
4242 public override string LaunchCommand => "invokeai-web" ;
43- public override PackageDifficulty InstallerSortOrder => PackageDifficulty . Nightmare ;
43+ public override PackageDifficulty InstallerSortOrder => PackageDifficulty . Advanced ;
4444
4545 public override Uri PreviewImageUri =>
4646 new ( "https://raw.githubusercontent.com/invoke-ai/InvokeAI/main/docs/assets/canvas_preview.png" ) ;
Original file line number Diff line number Diff line change @@ -170,7 +170,8 @@ await venvRunner
170170 XformersVersion = " " ,
171171 CudaIndex = isLegacyNvidia ? "cu126" : "cu128" ,
172172 // Add back the generic bitsandbytes and the specific numpy version
173- ExtraPipArgs = [ "bitsandbytes" , "numpy==1.26.4" ] ,
173+ ExtraPipArgs = [ "bitsandbytes" ] ,
174+ PostInstallPipArgs = [ "numpy==1.26.4" ] ,
174175 } ;
175176
176177 await StandardPipInstallProcessAsync (
You can’t perform that action at this time.
0 commit comments