Skip to content

Commit ad8b8e8

Browse files
monadierickxDennisTraub
authored andcommitted
use same inference parameters as python example
1 parent 06ce21a commit ad8b8e8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • swift/example_code/bedrock-runtime/models/amazon-nova/amazon_nova_canvas/Sources

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)