Closed OREOCODEDEV closed 1 year ago
img_utils.py中randon_effect方法内
if effect: func = funcs[1][effect] else: func = choices(population=funcs[1], weights=funcs[2], k=1) output: Image.Image = func[0](_img)
当 effect == 0 时,会走else分支导致配置项setu_add_randon_effect不生效,且output赋值的索引[0]应该只对random.choices的结果进行索引,否则指定处理特效时会导致TypeError
setu_add_randon_effect
立即PR
PR了,科佬康康有没有问题(
img_utils.py中randon_effect方法内
当 effect == 0 时,会走else分支导致配置项
setu_add_randon_effect
不生效,且output赋值的索引[0]应该只对random.choices的结果进行索引,否则指定处理特效时会导致TypeError