mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-29 07:22:12 +03:00
adapter settings
This commit is contained in:
@@ -260,7 +260,7 @@ class LightAdapter(nn.Module):
|
||||
def __init__(
|
||||
self,
|
||||
in_channels: int = 3,
|
||||
channels: List[int] = [320, 640, 1280],
|
||||
channels: List[int] = [320, 640, 1280, 1280],
|
||||
num_res_blocks: int = 4,
|
||||
downscale_factor: int = 8,
|
||||
):
|
||||
|
||||
@@ -84,9 +84,9 @@ class AdapterTests:
|
||||
torch.manual_seed(0)
|
||||
adapter = T2IAdapter(
|
||||
in_channels=3,
|
||||
channels=[32, 64],
|
||||
channels=[320, 640, 1280, 1280],
|
||||
num_res_blocks=2,
|
||||
downscale_factor=2,
|
||||
downscale_factor=8,
|
||||
adapter_type=adapter_type,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user