↓ 3 callersFunctionlatent_backward_guidance(scheduler, unet, cond_embeddings, index, bboxes, object_positions, t, latents, loss, loss_scale = 30, loss_th
models/pipelines.py:16
↓ 1 callersFunctionadd_ca_loss_per_attn_map_to_loss_boxdiff(original_loss, attention_maps, object_number, bboxes, object_positions, P=0.2, L=1, smooth_attentions=True, s
utils/boxdiff.py:164
↓ 1 callersFunctioncompose_latents(model_dict, latents_all_list, mask_tensor_list, num_inference_steps, overall_batch_size, height, width, laten
utils/latents.py:38
↓ 1 callersFunctiongenerate_single_object_with_box(
prompt,
box,
phrase,
word,
input_latents,
input_embeddings,
semantic_guidance_kw
generation/lmd_plus.py:44
↓ 1 callersFunctionget_down_block(
down_block_type,
num_layers,
in_channels,
out_channels,
temb_channels,
add_downsampl
models/unet_2d_blocks.py:27
↓ 1 callersFunctionget_up_block(
up_block_type,
num_layers,
in_channels,
out_channels,
prev_output_channel,
temb_chan
models/unet_2d_blocks.py:92
↓ 1 callersFunctionrun(
gen_boxes,
bg_prompt,
original_ind_base=None,
bootstrapping=20,
generate_kw=None,
fi
generation/multidiffusion.py:351
↓ 1 callersFunctionsam_refine_boxes(sam_input_images, boxes, model_dict, height, width, H, W, discourage_mask_below_confidence, discourage_mask_b
models/sam.py:182