huggingface / huggingface/diffusers

Inquiry About Using Non-Square Images for ControlNet Training

Aperta
#7,810 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
stale
Lingua principale
Python
Stelle
34.5k
Fork
7.3k
Merge medio
3g 3h
PR unite (30g)
91

Descrizione

Subject: Inquiry About Using Non-Square Images for ControlNet Training

Dear [Team/Developer],

First of all, thank you for providing the training code for ControlNet. I have recently been utilizing this code to train the ControlNet for an sdxl model, and I am quite satisfied with the results. However, I believe there is room for improvement.

During the training process, I noticed that the program crops images into squares. The images I am using are from interior design, which are rarely square and tend to lose their integrity when cropped. I am wondering if it is possible to train with longer or wider images, such as those with aspect ratios of 3:2 or 2:3. Would it be sufficient to modify the image processing part of the code to accommodate these dimensions?

I look forward to your response and thank you very much for your support!

Best regards

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating the ControlNet/SDXL training code's image-processing entry point and tracing where input images are cropped into squares. Check how 3:2 and 2:3 inputs are batched and represented during training; done means those aspect ratios can be trained without destructive square cropping and the existing training checks still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, pytorch
Ambito
computer-vision, machine-learning
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.