PlugML is a package that will host various models and enable us to quickly solve issues with ML.
· SemanticSimilarity: Allows you to compare two strings and see if they are referring to the same thing.
· Stable Diffusion: Generates an image based on a given text (TextToImage) or modifies an image based on a given text (ImageToImage).
Behind the scenes we use the models available on HuggingFace and we will try to bring more in the future.
· In order for the activity to work, Python needs to be installed. Latest knowing version of Python for this activity to work with is 3.10.9.
You can do it manually by downloading the 3.10.9 version from here. A full guide on how to use this set of activities can be found here.
GenerateEmbedding fields:
1. BatchSize: Splits the given list in smaller batch size to mitigate the chance of running out of memory. Default 64.
2. Data: Array of sentences. Embedding will be created from this.
3. EmbeddingFilePath: The location where the embed file will be created. Example "C:\Users\USERNAME\Downloads". Default is the root of the project.
4. EmbeddingFileName: The name of the embed file that will be created.
5. PythonInstalledPath: Home path where Python is installed in the local machine. Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310".
6. PythonLibrarypath: Library path (Linux or version> 3.9); InArgument<Strings>. For Linux is the path to Python libpython*.so library including library name. For Windows (Version>3.9) path to python**.dll including library name (usually is in Python Home path). For Windows (Version <=3,9) leave empty. Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\python310.dll".
1. Data: Array of sentences. The query will be checked against this.
2. QuertSentence: Query to check against sentences.
3. Threshold: Threshold for the ML Model for the cutoff point.
4. AllResults: Will return all matched results above the threshold, not just one.
5. EmbeddingFilePath: The location where the embed file will be created. Example "C:\Users\USERNAME\Downloads". Default is the root of the project.
6. EmbendingFileName: The name of the embed file that will be created.
7. Results: ML response with the best similarity match.
8. PythonInstalledPath: Home path where Python is installed in the local machine. Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310".
9. PythonLibrarypath: Library path (Linux or version> 3.9); InArgument<Strings> For Linux is the path to Python libpython*.so library including library name. For Windows (Version>3.9) path to python**.dll including library name (usually is in Python Home path). For Windows (Version <=3,9) leave empty. Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\python310.dll".
Note: You will need to create a token on huggingface to be able to use these activities.
1. Prompt: Text description of the image that will be generated.
2. ImageGuidanceScale: Used to increase the adherence to the prompt that guides the image generation.
3. FilePath: The path of the image to be generated. Example "C:\Users\USERNAME\Downloads".
4. Token: Hugging Face token, which is necessary for accessing the stable diffusion models.
5. Timeout: Specifies the amount of time (as Seconds) for the activity to run, before an exception is thrown and the activity is aborted.
6. PythonInstalledPath: Home path where Python is installed in the local machine. Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310".
7. PythonLibrarypath: Library path (Linux or version> 3.9); InArgument<Strings> For Linux is the path to Python libpython*.so library including library name. For Windows (Version>3.9) path to python**.dll including library name (usually is in Python Home path). For Windows (Version <=3,9) leave empty. Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\python310.dll".
1. ImageGuidanceScale: Used to increase the adherence to the prompt that guides the image generation.
2. Prompt: Text description of the image that will be generated.
3. FilePath: The path of the image to be generated.
Example "C:\Users\USERNAME\Downloads".
4. ImageStrength: Value between 0.0 and 1.0, that controls the amount of noise that is added to the input image.
5. Timeout: Specifies the amount of time (in Seconds) for the activty to run, before an exception is thrown and the activity is aborted.
6. Token: Hugging Face token, which is necessary for accessing the stable diffusion models.
7. ImageURL: URL of the input image, which will be modified based on the text prompt.
8. PythonInstalledPath: Home path where Python is installed in the local machine.
Example "C:\Users\USERNAME\AppData\Local\Programs\Python\Python310".
9. PythonLibrarypath: Library path (Linux or version> 3.9); InArgument<Strings>
Example "C:\***\Python\Python310\python310.dll".