We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9f61a commit 106cf26Copy full SHA for 106cf26
fastcomposer/data.py
@@ -2,6 +2,11 @@
2
import torch
3
from torchvision.io import read_image, ImageReadMode
4
import glob
5
+import json
6
+import numpy as np
7
+import random
8
+from copy import deepcopy
9
+
10
11
12
def prepare_image_token_idx(image_token_mask, max_num_objects):
fastcomposer/utils.py
@@ -661,6 +661,14 @@ def parse_args(default=False):
661
default=1,
662
)
663
664
+ parser.add_argument(
665
+ "--text_image_linking",
666
+ type=str,
667
+ default="postfuse",
668
+ )
669
670
+ parser.add_argument("--freeze_postfuse_module", action="store_true")
671
672
if default:
673
return parser.parse_args([])
674
script/run_inference.sh scripts/run_inference.shscript/run_inference.sh renamed to scripts/run_inference.sh
script/run_training.sh scripts/run_training.shscript/run_training.sh renamed to scripts/run_training.sh
0 commit comments