mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Fix broken links (#2217)
* https://github.com/rlaphoenix/VSGAN/blob/master/vsgan/archs/esrgan.py * https://github.com/huggingface/pytorch-image-models/blob/main/timm/layers/drop.py * https://kornia.readthedocs.io/en/latest/
This commit is contained in:
@@ -14,7 +14,7 @@ from .timm.weight_init import trunc_normal_
|
||||
|
||||
def drop_path(x, drop_prob: float = 0.0, training: bool = False):
|
||||
"""Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
|
||||
From: https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/layers/drop.py
|
||||
From: https://github.com/huggingface/pytorch-image-models/blob/main/timm/layers/drop.py
|
||||
"""
|
||||
if drop_prob == 0.0 or not training:
|
||||
return x
|
||||
@@ -30,7 +30,7 @@ def drop_path(x, drop_prob: float = 0.0, training: bool = False):
|
||||
|
||||
class DropPath(nn.Module):
|
||||
"""Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
|
||||
From: https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/layers/drop.py
|
||||
From: https://github.com/huggingface/pytorch-image-models/blob/main/timm/layers/drop.py
|
||||
"""
|
||||
|
||||
def __init__(self, drop_prob=None):
|
||||
|
||||
Reference in New Issue
Block a user