Browse Source

Config changes to stay in 16GB VRAM available on Colab

pull/18/head
pharmapsychotic 2 years ago
parent
commit
ad01cadbef
  1. 6
      clip_interrogator.ipynb

6
clip_interrogator.ipynb

@ -76,7 +76,11 @@
"import gradio as gr\n",
"from clip_interrogator import Config, Interrogator\n",
"\n",
"ci = Interrogator(Config())\n",
"config = Config()\n",
"config.blip_offload = True\n",
"config.chunk_size = 1024\n",
"config.flavor_intermediate_count = 1024\n",
"ci = Interrogator(config)\n",
"\n",
"def inference(image, mode):\n",
" image = image.convert('RGB')\n",

Loading…
Cancel
Save