Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reference image conditioning [2306.08276] #491

Merged
merged 4 commits into from
Sep 4, 2023

Conversation

pnsuau
Copy link
Contributor

@pnsuau pnsuau commented Jun 29, 2023

This PR implements a dataloader for side / reference image in addition to the image input, used as additionnal conditioning.

  • Dataloader
  • Input concat as cond
  • Bind embedding cond
  • Clip embedding cond
  • Test

Usage:

  • --data_dataset_mode {unaligned_labeled_mask_ref,self_supervised_labeled_mask_ref}

    • conditions.txt format:

      /path/to/img.png /path/to/ref.png
      
  • --data_dataset_mode {unaligned_labeled_mask_online_ref,self_supervised_labeled_mask_online_ref}

    • conditions.txt format:

      /path/to/img.png /path/to/cond.txt
      
    • /path/to/cond.txt format:

      /path/to/ref1.png # ref image for first bbox
      /path/to/ref2.png # ref image for second bbox
      # same number of lines and order as corresponding bbox.txt
      
  • --alg_palette_conditioning ref conditioning with embedding

    • --alg_palette_ref_embed_net clip using CLIP
    • --alg_palette_ref_embed_net imagebind using ImageBind
  • --alg_palette_cond_image_creation ref conditioning with concat to input

@pnsuau pnsuau self-assigned this Jun 30, 2023
@pnsuau pnsuau changed the title feat: ref feat: reference image conditioning Jun 30, 2023
@pnsuau pnsuau requested a review from royale July 3, 2023 08:12
@pnsuau pnsuau force-pushed the feat_ref_conditioning branch 2 times, most recently from ef2b0f2 to 91678c8 Compare July 7, 2023 07:33
@pnsuau pnsuau marked this pull request as ready for review July 7, 2023 07:33
@pnsuau pnsuau force-pushed the feat_ref_conditioning branch 2 times, most recently from 524840e to 7a1f4dd Compare July 18, 2023 13:04
@pnsuau pnsuau changed the title feat: reference image conditioning feat: reference image conditioning [2306.08276] Aug 1, 2023
@beniz beniz merged commit 70aeb32 into jolibrain:master Sep 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants