Installing required software

Make sure you are connected to the Internet.

Updating macOS

  1. Ensure you are running the latest version of macOS. You can check the latest versions of macOS on the Apple website. 

Installing the Procyon AI Image Generation Benchmark application

  1. Install Procyon:
    Procyon-<version>-image-generation-benchmark-macos.pkg
  2. Follow the prompts to complete the installation. 

Note:  
the Procyon AI Image Generation Benchmark is installed to the ‘/Library/UL/Procyon/AIImageGeneration’ folder. 

Registering your Procyon license 

  1. Open Terminal. 
  2. Go to installation folder:  
    cd /Library/UL/Procyon/AIImageGeneration 
  3. Register your license:
    ./UL_Procyon --register <license key> 

Running the AI Image Generation Benchmark 

Once the benchmark is installed and permissions configured properly, it can be run as follows: 

  1. Open Terminal. 
  2. In Terminal, navigate to the installation folder with:
    cd /Library/UL/Procyon/AIImageGeneration
  3. Run the AI Image Generation benchmark:
    ./UL_Procyon -d ai_imagegeneration_<test>_coreml_<device type>.def -o “<output path>/<output file>.procyon-result” --export-pdf <PDF File Name>.pdf
    Example:
    (Please note: "ProcyonTestUser/Procyonresults" is an example folder, attempting to export results to a folder that does not exist will mean no results file is created.)
    ./UL_Procyon -d ai_imagegeneration_sd15fp16_coreml_all.def 
    -o “/Users/ProcyonTestUser/Procyonresults/AIImageGenerationResult.procyon-result” --export-pdf AIImageGenerationResult.pdf 

Notes:

  1. Unlike the AI Image Generation Benchmark on Windows, we have already created individual definition files for each configuration of device type and precision. The complete list can be found below: 
    ai_imagegeneration_sd15fp16_coreml_all.def
    ai_imagegeneration_sd15fp16_coreml_cpu_and_gpu.def
    ai_imagegeneration_sd15fp16_coreml_cpu_and_ne.def
    ai_imagegeneration_sdxlfp16_coreml_cpu_and_gpu.def
    

    Please note that the Stable Diffusion XL test currently only supports the "CPU and GPU" configuration. 

  2. If the output path has whitespace, it must be escaped (note quotation marks and backslash).  
    Example:
    for output folder “/Users/Steve/result files/“ :
    -o “/Users/<username>/result\ files/AIImageGenerationResult.procyon-result” 

Viewing your results

Exporting with command line switch

Option 1:

  1. Use --export-csv, --export-pdf or --export-xml command line switch to export results as an XML or CSV file:  
    ./UL_Procyon -d ai_imagegeneration_<test>_coreml_<device type>.def -o <Export File Name>.zip --export-csv <CSV File Name>.csv --export-pdf <PDF File Name>.pdf --export-xml<XML File Name>.xml
    Example:
    ./UL_Procyon -d ai_imagegeneration_sd15fp16_coreml_all.def -o ZipAIImageGenerationResult.zip --export-csv AIImageGenerationResult.csv --export-pdf AIImageGenerationResult.pdf --export-xml AIImageGenerationResult.xml

Option 2:

  1. Use the --export-simple-CSV command line switch to export results as a single CSV file:  
    ./UL_Procyon -d ai_imagegeneration_<test>_coreml_<device type>.def -o <Export File Name>.zip -l 2 --export-simple-csv <CSV File Name>.csv
    Example:
    ./UL_Procyon -d ai_imagegeneration_sd15fp16_coreml_all.def -o ZipAIImageGenerationResult.zip -l 2 --export-simple-csv AIImageGenerationResult.csv

Option 3:

  1. Use the --online command line switch to upload results online:  
    ./UL_Procyon -d ai_imagegeneration_<test>_coreml_<device type>.def --online
    Example:
    ./UL_Procyon -d ai_imagegeneration_sd15fp16_coreml_all.def --online

Option 4:

  1. Use the --export-images command line switch to export all generated images as .png files:  
    ./UL_Procyon -d ai_imagegeneration_<test>_coreml_<device type>.def --export-images "<directory path>"
    Example:
    ./UL_Procyon -d ai_imagegeneration_sd15fp16_coreml_all.def --export-images "Users/<username>/images/"

Extracting Result.xml from the .procyon-result file.

(This is essentially the same as using –export-xml command) 

  1. Unzip the .procyon-result file to extract the contents. Your benchmark results are available in the ‘Result.xml’ file.  

Once you have the CSV or XML file, you can process the data with your preferred tools.


Uninstalling the Procyon AI Image Generation Benchmark 

The benchmark can be uninstalled as follows: 

  1. Open Terminal. 
  2. In Terminal, navigate to the installation folder with:
    cd /Library/UL/Procyon/AIImageGeneration
  3. Run the uninstallation script:
    sudo ./uninstall.sh 

Note:   

It is not recommended to uninstall just by removing the installation folder, as it will leave the Procyon app installed in the operating system registers. This can cause issues when installing Procyon again later.