You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,31 @@ Download to directory: C:\Users\pc\dalle2
81
81
```
82
82
83
83
84
+
or generate a specific amount
85
+
86
+
```python
87
+
from dalle2 import Dalle2
88
+
89
+
dalle = Dalle2("sess-xxxxxxxxxxxxxxxxxxxxxxxxxxxx")
90
+
generations = dalle.generate_amount("portal to another dimension", 12) # Every generation has batch size 6 -> amount % 6 == 0 works best
91
+
92
+
print(generations)
93
+
```
94
+
95
+
```
96
+
✔️ Task created with ID: task-lm0V4nZasgAFasd7AsStE67 and PROMT: portal to another dimension OVERALL: 1/ 2
97
+
⌛ Waiting for task to finish ..
98
+
➕ Appended new generations to all_generations
99
+
✔️ Task created with ID: task-WcetZOHt8asdvHb433gi and PROMT: portal to another dimension OVERALL: 2/ 2
100
+
⌛ Waiting for task to finish ..
101
+
➕ Appended new generations to all_generations
102
+
🙌 Task completed!
103
+
104
+
```
105
+
```
106
+
-> [list]
107
+
```
108
+
84
109
[](https://colab.research.google.com/drive/1EEgZNAI58V_OiEfRJQSsQV_xkhHzQeRB?usp=sharing)
0 commit comments