You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

color_print.py 331 B

1234567891011121314151617
  1. from rich import print
  2. def red_print(text):
  3. print(f"[red]{text}[/red]")
  4. def green_print(text):
  5. print(f"[green]{text}[/green]")
  6. def yellow_print(text):
  7. print(f"[yellow]{text}[/yellow]")
  8. def blue_print(text):
  9. print(f"[blue]{text}[/blue]")
  10. if __name__ == "__main__":
  11. yellow_print("This is red text.")

首先冻结OpenAI官方预训练的ViT-B/32版本的CLIP模型中的全部图像层,再利用AdanBelief优化器训练模型,该优化器是Adan优化器和AdaBelief优化器的融合,在Adan优化器中融入"Belief"增强训练模型的泛化性能。

Contributors (1)