fix: use fixes.py script for x-flux-comfyui patches (attn_mask + sdpa dtype)
This commit is contained in:
+2
-2
@@ -21,8 +21,8 @@ RUN cd /app/custom_nodes \
|
|||||||
&& git clone --depth 1 https://github.com/XLabs-AI/x-flux-comfyui \
|
&& git clone --depth 1 https://github.com/XLabs-AI/x-flux-comfyui \
|
||||||
&& pip install --no-cache-dir -r x-flux-comfyui/requirements.txt
|
&& pip install --no-cache-dir -r x-flux-comfyui/requirements.txt
|
||||||
|
|
||||||
RUN sed -i 's/def forward(self, img: Tensor, txt: Tensor, vec: Tensor, pe: Tensor) -> tuple\[Tensor, Tensor\]:/def forward(self, img: Tensor, txt: Tensor, vec: Tensor, pe: Tensor, attn_mask=None, transformer_options={}, **kwargs):/' /app/custom_nodes/x-flux-comfyui/xflux/src/flux/modules/layers.py \
|
COPY fixes.py /tmp/fixes.py
|
||||||
&& grep "attn_mask" /app/custom_nodes/x-flux-comfyui/xflux/src/flux/modules/layers.py
|
RUN python3 /tmp/fixes.py
|
||||||
|
|
||||||
RUN useradd -u 1000 -m comfyui && chown -R 1000:1000 /app
|
RUN useradd -u 1000 -m comfyui && chown -R 1000:1000 /app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user