Skip to content

Commit 0761bc6

Browse files
committed
use same inference parameters as python example
1 parent bb3e1ea commit 0761bc6

File tree

1 file changed

+2
-3
lines changed
  • swift/example_code/bedrock-runtime/models/amazon-nova/amazon_nova_canvas/Sources

1 file changed

+2
-3
lines changed

swift/example_code/bedrock-runtime/models/amazon-nova/amazon_nova_canvas/Sources/main.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ func generateImage(_ textPrompt: String, to path: String) async throws {
3333
},
3434
"taskType": "TEXT_IMAGE",
3535
"imageGenerationConfig": {
36-
"cfgScale": 8,
3736
"seed": 42,
3837
"quality": "standard",
39-
"width": 1024,
40-
"height": 1024,
38+
"width": 512,
39+
"height": 512,
4140
"numberOfImages": 1
4241
}
4342
}

0 commit comments

Comments
 (0)