TypeError: sum() takes no keyword arguments
TypeError Traceback (most recent call last)
TypeError: sum() takes no keyword arguments
Using rainbow_dalle.ipynb in Colab
Last line executed: all_words = list(sorted(frozenset(sum(captions, start=[]))))
@Tylersuard you'll have to take this up with @sorrge
You need python 3.8+ for this: https://docs.python.org/3/library/functions.html#sum
A workaround will be:
captions_joined = []
for caption in captions:
captions_joined += caption
all_words = list(sorted(frozenset(captions_joined)))