mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
Open python installation page if module is missing
This commit is contained in:
@@ -270,6 +270,8 @@ namespace Flowframes
|
|||||||
{
|
{
|
||||||
hasShownError = true;
|
hasShownError = true;
|
||||||
InterpolateUtils.ShowMessage($"A python module is missing.\nCheck {logFilename} for details.\n\n{line}\n\nIf you don't want to install it yourself, use the Python package from the Package Installer.", "Error");
|
InterpolateUtils.ShowMessage($"A python module is missing.\nCheck {logFilename} for details.\n\n{line}\n\nIf you don't want to install it yourself, use the Python package from the Package Installer.", "Error");
|
||||||
|
if(!Pytorch.HasEmbeddedPyFolder())
|
||||||
|
Process.Start("https://github.com/n00mkrad/flowframes/blob/main/PythonDependencies.md");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasShownError && line.ToLower().Contains("no longer supports this gpu"))
|
if (!hasShownError && line.ToLower().Contains("no longer supports this gpu"))
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Flowframes.OS
|
|||||||
|
|
||||||
public static string GetPyCmd ()
|
public static string GetPyCmd ()
|
||||||
{
|
{
|
||||||
if (Directory.Exists(Path.Combine(Paths.GetPkgPath(), "py-tu")) || Directory.Exists(Path.Combine(Paths.GetPkgPath(), "py-ampt")))
|
if (HasEmbeddedPyFolder())
|
||||||
{
|
{
|
||||||
Logger.Log("Using embedded Python runtime.");
|
Logger.Log("Using embedded Python runtime.");
|
||||||
string pyPkgDir = Path.Combine(Paths.GetPkgPath(), "py-amp");
|
string pyPkgDir = Path.Combine(Paths.GetPkgPath(), "py-amp");
|
||||||
@@ -39,6 +39,11 @@ namespace Flowframes.OS
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool HasEmbeddedPyFolder ()
|
||||||
|
{
|
||||||
|
return Directory.Exists(Path.Combine(Paths.GetPkgPath(), "py-tu")) || Directory.Exists(Path.Combine(Paths.GetPkgPath(), "py-ampt"));
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsPytorchReady ()
|
public static bool IsPytorchReady ()
|
||||||
{
|
{
|
||||||
string torchVer = GetPytorchVer();
|
string torchVer = GetPytorchVer();
|
||||||
|
|||||||
@@ -7,4 +7,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
This should be sufficient to run RIFE and other Pytorch-based networks on any modern GPU, including the RTX 3000 (Ampere) series.
|
This should be sufficient to run RIFE and other Pytorch-based networks on any modern GPU, including the RTX 3000 (Ampere) series.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
If you are getting some kind of numpy error, try downgrading it to 1.19.3:
|
||||||
|
|
||||||
|
`pip install numpy==1.19.3`
|
||||||
Reference in New Issue
Block a user