BenchmarkRecommendationPolicy
Derives provider-specific settings from benchmark measurements.
Author
Dmitriy Moroz
Functions
Link copied to clipboard
private fun BenchmarkDeviceInfo.accelerationStatus(accelerator: BenchmarkAccelerator): BenchmarkAccelerationStatus
Link copied to clipboard
private fun androidRecommendations(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, cpuScore: Int, memoryScore: Int, acceleratorScore: Int): List<BenchmarkProviderRecommendation>
Link copied to clipboard
Link copied to clipboard
private fun estimateBonsaiWarmGenerationSeconds(width: Int, height: Int, samplingSteps: Int, totalScore: Int, deviceInfo: BenchmarkDeviceInfo): Int
Link copied to clipboard
private fun estimateCoreMlWarmGenerationSeconds(width: Int, height: Int, samplingSteps: Int, totalScore: Int, deviceInfo: BenchmarkDeviceInfo): Int
Link copied to clipboard
fun estimateGenerationSeconds(provider: ServerSource, width: Int, height: Int, samplingSteps: Int, totalScore: Int, deviceInfo: BenchmarkDeviceInfo): Int
Link copied to clipboard
fun fallbackRecommendation(providerRecommendations: List<BenchmarkProviderRecommendation>): BenchmarkRecommendation
Link copied to clipboard
private fun iosBonsaiProfile(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, ramMb: Long): IosLocalGenerationProfile
Link copied to clipboard
private fun iosCoreMlProfile(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, ramMb: Long): IosLocalGenerationProfile
Link copied to clipboard
private fun iosRecommendations(deviceInfo: BenchmarkDeviceInfo, totalScore: Int): List<BenchmarkProviderRecommendation>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private fun mediaPipeRecommendation(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, lowMemory: Boolean, pixel3aClass: Boolean): BenchmarkProviderRecommendation
Link copied to clipboard
private fun notRecommended(provider: ServerSource, issues: List<BenchmarkProviderIssue>, sdxlBackend: SdxlBackend = SdxlBackend.CPU): BenchmarkProviderRecommendation
Link copied to clipboard
private fun onnxRecommendation(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, lowMemory: Boolean, lowScore: Boolean, pixel3aClass: Boolean): BenchmarkProviderRecommendation
Link copied to clipboard
fun providerRecommendations(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, cpuScore: Int, memoryScore: Int, acceleratorScore: Int): List<BenchmarkProviderRecommendation>
Link copied to clipboard
private fun recommended(provider: ServerSource, width: Int, height: Int, samplingSteps: Int, cfgScale: Float, estimatedTimeSeconds: Int, backgroundGeneration: Boolean, batchCount: Int = 1, sdxlBackend: SdxlBackend = SdxlBackend.CPU, issues: List<BenchmarkProviderIssue> = emptyList()): BenchmarkProviderRecommendation
Link copied to clipboard
private fun sdxlRecommendation(deviceInfo: BenchmarkDeviceInfo, totalScore: Int, cpuScore: Int, memoryScore: Int, acceleratorScore: Int, lowMemory: Boolean, pixel3aClass: Boolean): BenchmarkProviderRecommendation