[Refactor] Extend CFG Parallel to support 3 or 4 branch dispatch across M GPUs (#2423)
This commit is contained in:
1 parent
ef230ac720
commit
16041ab550
8 files changed
+670
-122
No files matched your search
@@ -9,6 +9,7 @@ from abc import ABCMeta
|
||||
from typing import Any
|
||||
|
||||
import torch
|
||||
from vllm.logger import init_logger
|
||||
|
||||
from vllm_omni.diffusion.distributed.parallel_state import (
|
||||
get_cfg_group,
|
||||
@@ -16,6 +17,8 @@ from vllm_omni.diffusion.distributed.parallel_state import (
|
||||
get_classifier_free_guidance_world_size,
|
||||
)
|
||||
|
||||
logger = init_logger(__name__)
|
||||
|
||||
|
||||
def _wrap(pred: torch.Tensor | tuple[torch.Tensor, ...]) -> tuple[torch.Tensor, ...]:
|
||||
"""Normalize prediction to tuple form."""
|
||||
@@ -32,6 +35,24 @@ def _slice_pred(pred: tuple[torch.Tensor, ...], output_slice: int) -> tuple[torc
|
||||
return tuple(p[:, :output_slice] for p in pred)
|
||||
|
||||
|
||||
def _dispatch_branches(n_branches: int, n_ranks: int) -> list[list[int]]:
|
||||
"""
|
||||
Round-robin dispatch N branches to M ranks.
|
||||
|
||||
Rule: branch i → rank (i % n_ranks).
|
||||
|
||||
Examples:
|
||||
_dispatch_branches(3, 2) -> [[0, 2], [1]]
|
||||
_dispatch_branches(3, 3) -> [[0], [1], [2]]
|
||||
_dispatch_branches(4, 2) -> [[0, 2], [1, 3]]
|
||||
_dispatch_branches(4, 4) -> [[0], [1], [2], [3]]
|
||||
"""
|
||||
assignments: list[list[int]] = [[] for _ in range(n_ranks)]
|
||||
for i in range(n_branches):
|
||||
assignments[i % n_ranks].append(i)
|
||||
return assignments
|
||||
|
||||
|
||||
class CFGParallelMixin(metaclass=ABCMeta):
|
||||
"""
|
||||
Base Mixin class for Diffusion pipelines providing shared CFG methods.
|
||||
@@ -189,6 +210,165 @@ class CFGParallelMixin(metaclass=ABCMeta):
|
||||
results.append(comb)
|
||||
return _unwrap(tuple(results))
|
||||
|
||||
# ── N-branch CFG interface (for 3+ branch models) ──
|
||||
|
||||
def predict_noise_with_multi_branch_cfg(
|
||||
self,
|
||||
do_true_cfg: bool,
|
||||
true_cfg_scale: float | dict[str, float],
|
||||
branches_kwargs: list[dict[str, Any]],
|
||||
cfg_normalize: bool = False,
|
||||
output_slice: int | None = None,
|
||||
) -> torch.Tensor | tuple[torch.Tensor, ...]:
|
||||
"""
|
||||
Predict noise with N-branch CFG dispatch across M GPUs.
|
||||
|
||||
This is the multi-branch counterpart of predict_noise_maybe_with_cfg().
|
||||
Use this for models with 3 or more CFG branches (e.g., OmniGen2, Bagel,
|
||||
DreamID). Existing 2-branch models should continue using
|
||||
predict_noise_maybe_with_cfg().
|
||||
|
||||
Args:
|
||||
do_true_cfg: Whether to apply CFG.
|
||||
true_cfg_scale: CFG scale factor (passed to combine_multi_branch_cfg_noise).
|
||||
branches_kwargs: List of N dicts, each containing kwargs for one
|
||||
predict_noise() call. branches_kwargs[0] is always the
|
||||
positive/conditional branch.
|
||||
cfg_normalize: Whether to normalize (passed to combine_multi_branch_cfg_noise).
|
||||
output_slice: If set, slice each output to [:, :output_slice].
|
||||
|
||||
Returns:
|
||||
Combined noise prediction, identical on all ranks in CFG parallel.
|
||||
"""
|
||||
if do_true_cfg:
|
||||
n_branches = len(branches_kwargs)
|
||||
cfg_world_size = get_classifier_free_guidance_world_size()
|
||||
cfg_parallel_ready = cfg_world_size > 1
|
||||
|
||||
if cfg_parallel_ready:
|
||||
return self._predict_multi_branch_parallel(
|
||||
branches_kwargs,
|
||||
n_branches,
|
||||
cfg_world_size,
|
||||
true_cfg_scale,
|
||||
cfg_normalize,
|
||||
output_slice,
|
||||
)
|
||||
else:
|
||||
# Sequential: run all N branches on single device
|
||||
preds: list[torch.Tensor | tuple[torch.Tensor, ...]] = []
|
||||
for kw in branches_kwargs:
|
||||
pred = _wrap(self.predict_noise(**kw))
|
||||
if output_slice is not None:
|
||||
pred = _slice_pred(pred, output_slice)
|
||||
preds.append(_unwrap(pred))
|
||||
return self.combine_multi_branch_cfg_noise(preds, true_cfg_scale, cfg_normalize)
|
||||
else:
|
||||
# No CFG: only compute positive/conditional prediction
|
||||
pred = self.predict_noise(**branches_kwargs[0])
|
||||
if output_slice is not None:
|
||||
pred = _unwrap(_slice_pred(_wrap(pred), output_slice))
|
||||
return pred
|
||||
|
||||
def _predict_multi_branch_parallel(
|
||||
self,
|
||||
branches_kwargs: list[dict[str, Any]],
|
||||
n_branches: int,
|
||||
cfg_world_size: int,
|
||||
true_cfg_scale: float,
|
||||
cfg_normalize: bool,
|
||||
output_slice: int | None,
|
||||
) -> torch.Tensor | tuple[torch.Tensor, ...]:
|
||||
"""Dispatch N branches across M ranks, all_gather, then combine."""
|
||||
cfg_group = get_cfg_group()
|
||||
cfg_rank = get_classifier_free_guidance_rank()
|
||||
|
||||
if cfg_world_size > n_branches:
|
||||
logger.warning_once(
|
||||
"cfg_parallel_size=%d > n_branches=%d, %d GPU(s) will be idle for CFG",
|
||||
cfg_world_size,
|
||||
n_branches,
|
||||
cfg_world_size - n_branches,
|
||||
)
|
||||
|
||||
# Assign branches to ranks via round-robin
|
||||
assignments = _dispatch_branches(n_branches, cfg_world_size)
|
||||
my_branch_ids = assignments[cfg_rank]
|
||||
max_per_rank = max(len(a) for a in assignments)
|
||||
|
||||
# Run assigned branches
|
||||
my_preds: list[tuple[torch.Tensor, ...]] = []
|
||||
for bid in my_branch_ids:
|
||||
pred = _wrap(self.predict_noise(**branches_kwargs[bid]))
|
||||
if output_slice is not None:
|
||||
pred = _slice_pred(pred, output_slice)
|
||||
my_preds.append(pred)
|
||||
|
||||
# Idle ranks (cfg_world_size > n_branches) run a forward pass to get the output shape for all_gather.
|
||||
# Output shape cannot be inferred from kwargs — may be tuple, sliced, etc.
|
||||
if not my_preds:
|
||||
pred = _wrap(self.predict_noise(**branches_kwargs[0]))
|
||||
if output_slice is not None:
|
||||
pred = _slice_pred(pred, output_slice)
|
||||
my_preds.append(pred)
|
||||
|
||||
# Pad to max_per_rank with zeros so all ranks have same size
|
||||
ref_pred = my_preds[0]
|
||||
while len(my_preds) < max_per_rank:
|
||||
my_preds.append(tuple(torch.zeros_like(t) for t in ref_pred))
|
||||
|
||||
# All-gather each output element separately (like predict_noise_maybe_with_cfg)
|
||||
# For each slot, gather across ranks; then pick valid results by owner_rank
|
||||
# all_slots[slot][elem_idx] = [rank0_tensor, rank1_tensor, ...]
|
||||
all_slots: list[list[list[torch.Tensor]]] = []
|
||||
for slot in range(max_per_rank):
|
||||
slot_results: list[list[torch.Tensor]] = []
|
||||
for p in my_preds[slot]:
|
||||
gathered = cfg_group.all_gather(p, separate_tensors=True)
|
||||
slot_results.append(gathered)
|
||||
all_slots.append(slot_results)
|
||||
|
||||
# Reconstruct final_preds in branch order
|
||||
final_preds: list[torch.Tensor | tuple[torch.Tensor, ...]] = []
|
||||
for bid in range(n_branches):
|
||||
owner_rank = bid % cfg_world_size
|
||||
slot_idx = bid // cfg_world_size
|
||||
elements = tuple(all_slots[slot_idx][elem_idx][owner_rank] for elem_idx in range(len(ref_pred)))
|
||||
final_preds.append(_unwrap(elements))
|
||||
|
||||
return self.combine_multi_branch_cfg_noise(final_preds, true_cfg_scale, cfg_normalize)
|
||||
|
||||
def combine_multi_branch_cfg_noise(
|
||||
self,
|
||||
predictions: list[torch.Tensor | tuple[torch.Tensor, ...]],
|
||||
true_cfg_scale: float | dict[str, float],
|
||||
cfg_normalize: bool = False,
|
||||
) -> torch.Tensor | tuple[torch.Tensor, ...]:
|
||||
"""
|
||||
Combine N branch predictions. Default: standard 2-branch CFG formula.
|
||||
|
||||
Override this method for custom multi-branch combine logic.
|
||||
|
||||
Args:
|
||||
predictions: List of N predictions, where predictions[0] is always
|
||||
the positive/conditional branch.
|
||||
true_cfg_scale: CFG scale factor (float for 2-branch, dict for multi-branch).
|
||||
cfg_normalize: Whether to normalize the combined prediction.
|
||||
|
||||
Returns:
|
||||
Combined noise prediction.
|
||||
"""
|
||||
positive = _wrap(predictions[0])
|
||||
negative = _wrap(predictions[1])
|
||||
|
||||
results = []
|
||||
for p, n in zip(positive, negative):
|
||||
comb = n + true_cfg_scale * (p - n)
|
||||
if cfg_normalize:
|
||||
comb = self.cfg_normalize_function(p, comb)
|
||||
results.append(comb)
|
||||
return _unwrap(tuple(results))
|
||||
|
||||
def predict_noise(self, *args: Any, **kwargs: Any) -> torch.Tensor | tuple[torch.Tensor, ...]:
|
||||
"""
|
||||
Forward pass through transformer to predict noise.
|
||||
|
||||
@@ -15,11 +15,6 @@ from tqdm import tqdm
|
||||
|
||||
from vllm_omni.diffusion.data import DiffusionOutput, OmniDiffusionConfig
|
||||
from vllm_omni.diffusion.distributed.cfg_parallel import CFGParallelMixin
|
||||
from vllm_omni.diffusion.distributed.parallel_state import (
|
||||
get_cfg_group,
|
||||
get_classifier_free_guidance_rank,
|
||||
get_classifier_free_guidance_world_size,
|
||||
)
|
||||
from vllm_omni.diffusion.distributed.utils import get_local_device
|
||||
from vllm_omni.diffusion.models.interface import SupportAudioInput, SupportImageInput
|
||||
from vllm_omni.diffusion.request import OmniDiffusionRequest
|
||||
@@ -249,6 +244,28 @@ class DreamIDOmniPipeline(nn.Module, CFGParallelMixin, SupportImageInput, Suppor
|
||||
|
||||
return sample_scheduler, timesteps
|
||||
|
||||
def predict_noise(self, **kwargs):
|
||||
pred_vid, pred_audio = self.model(**kwargs)
|
||||
return (pred_vid[0], pred_audio[0])
|
||||
|
||||
def combine_multi_branch_cfg_noise(self, predictions, true_cfg_scale, cfg_normalize=False):
|
||||
vid_pos, audio_pos = predictions[0]
|
||||
vid_neg, audio_neg = predictions[1]
|
||||
vid_ip_neg, _ = predictions[2]
|
||||
_, refaudio_neg = predictions[3]
|
||||
|
||||
pred_video = (
|
||||
vid_neg
|
||||
+ true_cfg_scale["video_cfg_scale"] * (vid_pos - vid_neg)
|
||||
+ true_cfg_scale["video_ref_cfg_scale"] * (vid_pos - vid_ip_neg)
|
||||
)
|
||||
pred_audio = (
|
||||
audio_neg
|
||||
+ true_cfg_scale["audio_cfg_scale"] * (audio_pos - audio_neg)
|
||||
+ true_cfg_scale["audio_ref_cfg_scale"] * (audio_pos - refaudio_neg)
|
||||
)
|
||||
return (pred_video, pred_audio)
|
||||
|
||||
def diffuse(
|
||||
self,
|
||||
video_noise: torch.Tensor,
|
||||
@@ -306,72 +323,22 @@ class DreamIDOmniPipeline(nn.Module, CFGParallelMixin, SupportImageInput, Suppor
|
||||
"vid_context": [text_embeddings_video_neg],
|
||||
}
|
||||
|
||||
if get_classifier_free_guidance_world_size() > 1:
|
||||
# Enable CFG-parallel: rank0 computes positive, rank1 computes negative.
|
||||
cfg_group = get_cfg_group()
|
||||
cfg_rank = get_classifier_free_guidance_rank()
|
||||
branches_kwargs = [
|
||||
{"vid": [model_input_video], "audio": [model_input_audio], "t": timestep_input, **pos_args},
|
||||
{"vid": [model_input_video], "audio": [model_input_audio], "t": timestep_input, **neg_args},
|
||||
{"vid": [model_input_video_neg], "audio": [model_input_audio], "t": timestep_input, **pos_args},
|
||||
{"vid": [model_input_video], "audio": [model_input_audio_neg], "t": timestep_input, **pos_args},
|
||||
]
|
||||
|
||||
if cfg_rank == 0:
|
||||
pred_vid, pred_audio = self.model(
|
||||
vid=[model_input_video], audio=[model_input_audio], t=timestep_input, **pos_args
|
||||
)
|
||||
pre_vid_ip_neg, _ = self.model(
|
||||
vid=[model_input_video_neg], audio=[model_input_audio], t=timestep_input, **pos_args
|
||||
)
|
||||
pred_vid_0 = pred_vid[0]
|
||||
pred_audio_0 = pred_audio[0]
|
||||
pre_vid_ip_0 = pre_vid_ip_neg[0]
|
||||
pred_refaudio_0 = torch.zeros_like(pred_audio_0) # dummy tensor
|
||||
else:
|
||||
pred_vid, pred_audio = self.model(
|
||||
vid=[model_input_video], audio=[model_input_audio], t=timestep_input, **neg_args
|
||||
)
|
||||
_, pred_refaudio_neg = self.model(
|
||||
vid=[model_input_video], audio=[model_input_audio_neg], t=timestep_input, **pos_args
|
||||
)
|
||||
pred_vid_0 = pred_vid[0]
|
||||
pred_audio_0 = pred_audio[0]
|
||||
pre_vid_ip_0 = torch.zeros_like(pred_vid_0) # dummy tensor
|
||||
pred_refaudio_0 = pred_refaudio_neg[0]
|
||||
|
||||
pred_vid_gathered = cfg_group.all_gather(pred_vid_0, separate_tensors=True)
|
||||
pred_audio_gathered = cfg_group.all_gather(pred_audio_0, separate_tensors=True)
|
||||
pre_vid_ip_gathered = cfg_group.all_gather(pre_vid_ip_0, separate_tensors=True)
|
||||
pred_refaudio_gathered = cfg_group.all_gather(pred_refaudio_0, separate_tensors=True)
|
||||
|
||||
pred_vid_pos = [pred_vid_gathered[0]]
|
||||
pred_vid_neg = [pred_vid_gathered[1]]
|
||||
pred_audio_pos = [pred_audio_gathered[0]]
|
||||
pred_audio_neg = [pred_audio_gathered[1]]
|
||||
pre_vid_ip_neg = [pre_vid_ip_gathered[0]]
|
||||
pred_refaudio_neg = [pred_refaudio_gathered[1]]
|
||||
else:
|
||||
pred_vid_pos, pred_audio_pos = self.model(
|
||||
vid=[model_input_video], audio=[model_input_audio], t=timestep_input, **pos_args
|
||||
)
|
||||
|
||||
pred_vid_neg, pred_audio_neg = self.model(
|
||||
vid=[model_input_video], audio=[model_input_audio], t=timestep_input, **neg_args
|
||||
)
|
||||
|
||||
pre_vid_ip_neg, _ = self.model(
|
||||
vid=[model_input_video_neg], audio=[model_input_audio], t=timestep_input, **pos_args
|
||||
)
|
||||
|
||||
_, pred_refaudio_neg = self.model(
|
||||
vid=[model_input_video], audio=[model_input_audio_neg], t=timestep_input, **pos_args
|
||||
)
|
||||
|
||||
pred_video_guided = (
|
||||
pred_vid_neg[0]
|
||||
+ self.video_cfg_scale * (pred_vid_pos[0] - pred_vid_neg[0])
|
||||
+ self.video_ref_cfg_scale * (pred_vid_pos[0] - pre_vid_ip_neg[0])
|
||||
)
|
||||
|
||||
pred_audio_guided = (
|
||||
pred_audio_neg[0]
|
||||
+ self.audio_cfg_scale * (pred_audio_pos[0] - pred_audio_neg[0])
|
||||
+ self.audio_ref_cfg_scale * (pred_audio_pos[0] - pred_refaudio_neg[0])
|
||||
pred_video_guided, pred_audio_guided = self.predict_noise_with_multi_branch_cfg(
|
||||
do_true_cfg=True,
|
||||
true_cfg_scale={
|
||||
"video_cfg_scale": self.video_cfg_scale,
|
||||
"video_ref_cfg_scale": self.video_ref_cfg_scale,
|
||||
"audio_cfg_scale": self.audio_cfg_scale,
|
||||
"audio_ref_cfg_scale": self.audio_ref_cfg_scale,
|
||||
},
|
||||
branches_kwargs=branches_kwargs,
|
||||
)
|
||||
video_noise = scheduler_video.step(
|
||||
pred_video_guided.unsqueeze(0), t_v, video_noise.unsqueeze(0), return_dict=False
|
||||
|
||||
@@ -29,6 +29,7 @@ from transformers import Qwen2_5_VLForConditionalGeneration, Qwen2_5_VLProcessor
|
||||
from vllm.model_executor.models.utils import AutoWeightsLoader
|
||||
|
||||
from vllm_omni.diffusion.data import DiffusionOutput, OmniDiffusionConfig
|
||||
from vllm_omni.diffusion.distributed.cfg_parallel import CFGParallelMixin
|
||||
from vllm_omni.diffusion.distributed.utils import get_local_device
|
||||
from vllm_omni.diffusion.model_loader.diffusers_loader import DiffusersPipelineLoader
|
||||
from vllm_omni.diffusion.models.omnigen2.omnigen2_transformer import (
|
||||
@@ -619,7 +620,7 @@ def retrieve_timesteps(
|
||||
return timesteps, num_inference_steps
|
||||
|
||||
|
||||
class OmniGen2Pipeline(nn.Module):
|
||||
class OmniGen2Pipeline(CFGParallelMixin, nn.Module):
|
||||
"""
|
||||
Pipeline for text-to-image generation using OmniGen2.
|
||||
|
||||
@@ -1171,14 +1172,6 @@ class OmniGen2Pipeline(nn.Module):
|
||||
self._num_timesteps = len(timesteps)
|
||||
|
||||
for i, t in enumerate(timesteps):
|
||||
model_pred = self.predict(
|
||||
t=t,
|
||||
latents=latents,
|
||||
prompt_embeds=prompt_embeds,
|
||||
freqs_cis=freqs_cis,
|
||||
prompt_attention_mask=prompt_attention_mask,
|
||||
ref_image_hidden_states=ref_latents,
|
||||
)
|
||||
text_guidance_scale = (
|
||||
self.text_guidance_scale if self.cfg_range[0] <= i / len(timesteps) <= self.cfg_range[1] else 1.0
|
||||
)
|
||||
@@ -1186,8 +1179,26 @@ class OmniGen2Pipeline(nn.Module):
|
||||
self.image_guidance_scale if self.cfg_range[0] <= i / len(timesteps) <= self.cfg_range[1] else 1.0
|
||||
)
|
||||
|
||||
positive_kwargs = dict(
|
||||
t=t,
|
||||
latents=latents,
|
||||
prompt_embeds=prompt_embeds,
|
||||
freqs_cis=freqs_cis,
|
||||
prompt_attention_mask=prompt_attention_mask,
|
||||
ref_image_hidden_states=ref_latents,
|
||||
)
|
||||
uncond_kwargs = dict(
|
||||
t=t,
|
||||
latents=latents,
|
||||
prompt_embeds=negative_prompt_embeds,
|
||||
freqs_cis=freqs_cis,
|
||||
prompt_attention_mask=negative_prompt_attention_mask,
|
||||
ref_image_hidden_states=None,
|
||||
)
|
||||
|
||||
if text_guidance_scale > 1.0 and image_guidance_scale > 1.0:
|
||||
model_pred_ref = self.predict(
|
||||
# 3-branch CFG: pos + ref_neg + uncond
|
||||
ref_neg_kwargs = dict(
|
||||
t=t,
|
||||
latents=latents,
|
||||
prompt_embeds=negative_prompt_embeds,
|
||||
@@ -1195,31 +1206,24 @@ class OmniGen2Pipeline(nn.Module):
|
||||
prompt_attention_mask=negative_prompt_attention_mask,
|
||||
ref_image_hidden_states=ref_latents,
|
||||
)
|
||||
|
||||
model_pred_uncond = self.predict(
|
||||
t=t,
|
||||
latents=latents,
|
||||
prompt_embeds=negative_prompt_embeds,
|
||||
freqs_cis=freqs_cis,
|
||||
prompt_attention_mask=negative_prompt_attention_mask,
|
||||
ref_image_hidden_states=None,
|
||||
)
|
||||
|
||||
model_pred = (
|
||||
model_pred_uncond
|
||||
+ image_guidance_scale * (model_pred_ref - model_pred_uncond)
|
||||
+ text_guidance_scale * (model_pred - model_pred_ref)
|
||||
model_pred = self.predict_noise_with_multi_branch_cfg(
|
||||
do_true_cfg=True,
|
||||
true_cfg_scale={
|
||||
"text": text_guidance_scale,
|
||||
"image": image_guidance_scale,
|
||||
},
|
||||
branches_kwargs=[positive_kwargs, ref_neg_kwargs, uncond_kwargs],
|
||||
)
|
||||
elif text_guidance_scale > 1.0:
|
||||
model_pred_uncond = self.predict(
|
||||
t=t,
|
||||
latents=latents,
|
||||
prompt_embeds=negative_prompt_embeds,
|
||||
freqs_cis=freqs_cis,
|
||||
prompt_attention_mask=negative_prompt_attention_mask,
|
||||
ref_image_hidden_states=None,
|
||||
# 2-branch CFG: pos + uncond
|
||||
model_pred = self.predict_noise_with_multi_branch_cfg(
|
||||
do_true_cfg=True,
|
||||
true_cfg_scale=text_guidance_scale,
|
||||
branches_kwargs=[positive_kwargs, uncond_kwargs],
|
||||
)
|
||||
model_pred = model_pred_uncond + text_guidance_scale * (model_pred - model_pred_uncond)
|
||||
else:
|
||||
# No CFG
|
||||
model_pred = self.predict_noise(**positive_kwargs)
|
||||
|
||||
latents = self.scheduler.step(model_pred, t, latents, return_dict=False)[0]
|
||||
|
||||
@@ -1265,6 +1269,21 @@ class OmniGen2Pipeline(nn.Module):
|
||||
)
|
||||
return model_pred
|
||||
|
||||
def predict_noise(self, **kwargs):
|
||||
"""Override CFGParallelMixin.predict_noise to use self.predict."""
|
||||
return self.predict(**kwargs)
|
||||
|
||||
def combine_multi_branch_cfg_noise(self, predictions, true_cfg_scale, cfg_normalize=False):
|
||||
"""Override: 3-branch dual scale or 2-branch standard CFG."""
|
||||
if len(predictions) == 3:
|
||||
text_scale = true_cfg_scale["text"]
|
||||
image_scale = true_cfg_scale["image"]
|
||||
pos, ref, uncond = predictions[0], predictions[1], predictions[2]
|
||||
return uncond + image_scale * (ref - uncond) + text_scale * (pos - ref)
|
||||
# 2-branch: standard CFG
|
||||
pos, neg = predictions[0], predictions[1]
|
||||
return neg + true_cfg_scale * (pos - neg)
|
||||
|
||||
def load_weights(self, weights: Iterable[tuple[str, torch.Tensor]]) -> set[str]:
|
||||
loader = AutoWeightsLoader(self)
|
||||
return loader.load_weights(weights)
|
||||
Reference in new issue
Block a user