|
|
@@ -31,7 +31,8 @@ enum class ModelType : uint32_t {
|
|
|
ESRGAN = 128,
|
|
|
CONTROLNET = 256,
|
|
|
UPSCALER = 512,
|
|
|
- EMBEDDING = 1024
|
|
|
+ EMBEDDING = 1024,
|
|
|
+ DIFFUSION_MODELS = 2048
|
|
|
};
|
|
|
|
|
|
// Enable bitwise operations for ModelType
|
|
|
@@ -96,6 +97,12 @@ public:
|
|
|
/**
|
|
|
* @brief Scan the models directory to discover available models
|
|
|
*
|
|
|
+ * Recursively scans all subdirectories within the models directory to find
|
|
|
+ * model files. For each model found, constructs the display name as
|
|
|
+ * 'relative_path/model_name' where relative_path is the path from the models
|
|
|
+ * root directory to the file's containing folder (using forward slashes).
|
|
|
+ * Models in the root directory appear without a prefix.
|
|
|
+ *
|
|
|
* @return true if scanning was successful, false otherwise
|
|
|
*/
|
|
|
bool scanModelsDirectory();
|
|
|
@@ -303,4 +310,4 @@ private:
|
|
|
std::unique_ptr<Impl> pImpl; // Pimpl idiom
|
|
|
};
|
|
|
|
|
|
-#endif // MODEL_MANAGER_H
|
|
|
+#endif // MODEL_MANAGER_H
|