Upload unet.pth
73ceee4
verified
-
1.52 kB
initial commit
-
768 Bytes
Push FastAI model using huggingface_hub.
model.pkl
Detected Pickle imports (105)
- "fastai.learner.Learner",
- "fastai.callback.hook._hook_inner",
- "torch.nn.utils.spectral_norm.SpectralNormStateDictHook",
- "fastai.losses.CrossEntropyLossFlat",
- "fastai.layers.ConvLayer",
- "torch.nn.modules.pooling.MaxPool2d",
- "builtins.int",
- "pathlib.Path",
- "fastai.vision.models.unet.DynamicUnet",
- "builtins.bytes",
- "fastcore.dispatch._TypeDict",
- "inspect._ParameterKind",
- "numpy.core._multiarray_umath.less",
- "fastcore.transform.Pipeline",
- "__main__.TargetMaskConvertTransform",
- "numpy.ndarray",
- "__main__.get_y_fn",
- "__main__.SegmentationAlbumentationsTransform",
- "fastai.callback.progress.ProgressCallback",
- "fastcore.basics.fastuple",
- "fastai.learner.AvgLoss",
- "torch._utils._rebuild_parameter",
- "torch._tensor._rebuild_from_type_v2",
- "fastai.metrics.DiceMulti",
- "fastai.torch_core.TensorImage",
- "fastai.vision.core.AddMaskCodes",
- "builtins.float",
- "pathlib.PosixPath",
- "inspect.Parameter",
- "fastai.layers.ToTensorBase",
- "torch.nn.modules.container.Sequential",
- "fastai.data.load._FakeLoader",
- "numpy.dtype",
- "torch.nn.modules.batchnorm.BatchNorm2d",
- "albumentations.augmentations.geometric.transforms.GridDistortion",
- "numpy.core.multiarray._reconstruct",
- "numpy.random._pickle.__bit_generator_ctor",
- "fastai.callback.tracker.EarlyStoppingCallback",
- "torch.utils.hooks.RemovableHandle",
- "collections.OrderedDict",
- "torch.nn.modules.module._WrappedHook",
- "torch.nn.utils.spectral_norm.SpectralNormLoadStateDictPreHook",
- "torch.nn.modules.container.ModuleList",
- "fastai.torch_core.TensorMask",
- "torch.nn.modules.activation.Mish",
- "fastai.layers.SelfAttention",
- "albumentations.core.composition.Compose",
- "fastai.imports.noop",
- "fastai.data.core.TfmdLists",
- "fastai.data.transforms.IntToFloatTensor",
- "albumentations.augmentations.geometric.transforms.HorizontalFlip",
- "builtins.str",
- "fastai.data.core.Datasets",
- "fastai.torch_core.TensorBase",
- "fastai.learner.Recorder",
- "torch.nn.modules.loss.CrossEntropyLoss",
- "builtins.tuple",
- "torch.nn.modules.conv.Conv2d",
- "torch.device",
- "fastai.data.load._wif",
- "fastcore.foundation.L",
- "fastai.layers.ResBlock",
- "fastcore.dispatch.TypeDispatch",
- "fastai.data.core.TfmdDL",
- "fastai.vision.models.unet.ResizeToOrig",
- "torch.Tensor",
- "inspect.Signature",
- "albumentations.augmentations.geometric.rotate.Rotate",
- "fastai.vision.core.PILMask",
- "fastai.optimizer.ranger",
- "fastai.callback.progress.ShowGraphCallback",
- "builtins.getattr",
- "fastai.vision.augment.Resize",
- "fastai.data.transforms.ToTensor",
- "fastai.vision.core.PILImage",
- "PIL.Image.Resampling",
- "fastai.layers.MergeLayer",
- "fastai.callback.hook.Hook",
- "numpy.core.multiarray.scalar",
- "fastai.layers.PixelShuffle_ICNR",
- "torch.nn.utils.spectral_norm.SpectralNorm",
- "torch.LongStorage",
- "torch.nn.modules.activation.ReLU",
- "numpy.random._pickle.__generator_ctor",
- "torch.FloatStorage",
- "fastai.data.transforms.Normalize",
- "torchvision.models.resnet.resnet34",
- "fastai.learner.CastToTensor",
- "fastai.data.core.DataLoaders",
- "fastai.vision.models.unet.UnetBlock",
- "builtins.object",
- "torch._utils._rebuild_tensor_v2",
- "PIL.Image.Image",
- "torchvision.models.resnet.BasicBlock",
- "torch.nn.modules.conv.Conv1d",
- "fastai.callback.hook.Hooks",
- "fastai.vision.learner._resnet_split",
- "inspect._empty",
- "torch.nn.modules.pixelshuffle.PixelShuffle",
- "fastai.callback.tracker.SaveModelCallback",
- "fastai.callback.core.TrainEvalCallback",
- "builtins.print",
- "random.Random",
- "fastai.learner.AvgSmoothLoss",
- "fastcore.transform.Transform"
How to fix it?
223 MB
Push FastAI model using huggingface_hub.
-
163 Bytes
Push FastAI model using huggingface_hub.
unet.pth
Detected Pickle imports (215)
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_480.BatchNorm2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_593.Sequential",
- "__torch__.torch.nn.modules.conv.___torch_mangle_405.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_563.Mish",
- "collections.OrderedDict",
- "__torch__.torch.nn.modules.activation.___torch_mangle_397.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_414.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_475.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_581.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_407.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_455.Conv2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_460.BasicBlock",
- "__torch__.fastai.vision.models.unet.___torch_mangle_601.DynamicUnet",
- "__torch__.torch.nn.modules.conv.___torch_mangle_467.Conv2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_494.BasicBlock",
- "__torch__.torch.nn.modules.activation.___torch_mangle_488.ReLU",
- "__torch__.torch.nn.modules.activation.___torch_mangle_565.Mish",
- "__torch__.torch.nn.modules.pixelshuffle.___torch_mangle_535.PixelShuffle",
- "__torch__.torchvision.models.resnet.___torch_mangle_438.BasicBlock",
- "__torch__.torch.nn.modules.activation.___torch_mangle_401.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_439.Conv2d",
- "__torch__.torch.nn.modules.pixelshuffle.___torch_mangle_521.PixelShuffle",
- "__torch__.torch.nn.modules.conv.___torch_mangle_461.Conv2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_395.Conv2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_472.BasicBlock",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_403.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_511.Conv2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_507.Sequential",
- "__torch__.fastai.layers.___torch_mangle_564.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_408.Conv2d",
- "__torch__.torch.nn.modules.pooling.___torch_mangle_398.MaxPool2d",
- "__torch__.fastai.vision.models.unet.___torch_mangle_566.UnetBlock",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_424.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_442.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_554.Mish",
- "__torch__.torchvision.models.resnet.___torch_mangle_404.BasicBlock",
- "__torch__.torch.nn.modules.activation.___torch_mangle_448.ReLU",
- "__torch__.torch.nn.modules.activation.___torch_mangle_469.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_436.Conv2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_432.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_470.Conv2d",
- "__torch__.fastai.layers.___torch_mangle_529.ConvLayer",
- "__torch__.torch.nn.modules.activation.___torch_mangle_530.Mish",
- "__torch__.torch.nn.modules.conv.___torch_mangle_524.Conv2d",
- "__torch__.fastai.layers.___torch_mangle_516.ConvLayer",
- "__torch__.torch.nn.modules.activation.___torch_mangle_519.Mish",
- "__torch__.torch.nn.modules.conv.___torch_mangle_411.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_412.BatchNorm2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_416.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_451.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_509.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_569.ConvLayer",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_406.BatchNorm2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_454.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_423.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_429.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_495.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_499.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_431.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_525.Mish",
- "__torch__.fastai.layers.___torch_mangle_596.ResBlock",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_496.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_539.Mish",
- "__torch__.fastai.layers.___torch_mangle_540.ConvLayer",
- "__torch__.torch.nn.modules.container.___torch_mangle_425.Sequential",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_523.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_583.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_576.Conv2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_417.Sequential",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_450.BatchNorm2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_478.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_501.Conv2d",
- "__torch__.fastai.layers.___torch_mangle_546.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_573.Conv2d",
- "__torch__.fastai.vision.models.unet.___torch_mangle_586.ResizeToOrig",
- "__torch__.fastai.layers.___torch_mangle_599.ToTensorBase",
- "__torch__.torchvision.models.resnet.___torch_mangle_500.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_430.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_503.ReLU",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_505.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_463.ReLU",
- "__torch__.torchvision.models.resnet.___torch_mangle_410.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_491.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_474.BatchNorm2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_453.Sequential",
- "__torch__.torch.nn.modules.activation.___torch_mangle_512.Mish",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_537.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_459.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_396.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_598.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_482.Conv2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_486.Conv2d",
- "torch.LongStorage",
- "__torch__.torchvision.models.resnet.___torch_mangle_444.BasicBlock",
- "__torch__.torch.nn.modules.container.___torch_mangle_600.ModuleList",
- "__torch__.fastai.layers.___torch_mangle_526.ConvLayer",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_572.BatchNorm2d",
- "__torch__.fastai.vision.models.unet.___torch_mangle_580.UnetBlock",
- "__torch__.fastai.layers.___torch_mangle_548.ConvLayer",
- "__torch__.torch.nn.modules.activation.___torch_mangle_413.ReLU",
- "__torch__.fastai.layers.___torch_mangle_590.ConvLayer",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_415.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_476.Conv2d",
- "__torch__.fastai.layers.___torch_mangle_561.ConvLayer",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_428.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_579.Mish",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_400.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_533.Mish",
- "__torch__.fastai.layers.___torch_mangle_550.ConvLayer",
- "__torch__.fastai.layers.___torch_mangle_592.ConvLayer",
- "__torch__.fastai.layers.___torch_mangle_544.ConvLayer",
- "__torch__.torch.nn.modules.pixelshuffle.___torch_mangle_584.PixelShuffle",
- "__torch__.torch.nn.modules.conv.___torch_mangle_597.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_542.Mish",
- "__torch__.torch.nn.modules.activation.___torch_mangle_497.ReLU",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_558.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_449.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_502.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_418.Conv2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_433.Conv2d",
- "__torch__.fastai.layers.___torch_mangle_571.PixelShuffle_ICNR",
- "__torch__.torch.nn.modules.activation.___torch_mangle_595.Mish",
- "__torch__.fastai.layers.___torch_mangle_513.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_479.Conv2d",
- "__torch__.torch.nn.modules.pixelshuffle.___torch_mangle_570.PixelShuffle",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_490.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_510.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_545.Conv1d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_588.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_422.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_457.ReLU",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_409.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_443.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_514.Conv2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_421.Conv2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_493.Sequential",
- "__torch__.torch.nn.modules.conv.___torch_mangle_518.Conv2d",
- "__torch__.fastai.layers.___torch_mangle_534.ConvLayer",
- "__torch__.torch.nn.modules.activation.___torch_mangle_528.Mish",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_447.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_587.MergeLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_547.Conv1d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_538.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_477.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_515.Mish",
- "__torch__.torchvision.models.resnet.___torch_mangle_466.BasicBlock",
- "__torch__.torch.nn.modules.activation.___torch_mangle_582.Mish",
- "__torch__.torch.nn.modules.activation.___torch_mangle_435.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_562.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_471.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_446.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_437.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_492.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_481.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_559.Conv2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_445.Sequential",
- "__torch__.torch.nn.modules.conv.___torch_mangle_427.Conv2d",
- "__torch__.torchvision.models.resnet.___torch_mangle_506.BasicBlock",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_419.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_473.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_577.Mish",
- "__torch__.torch.nn.modules.container.___torch_mangle_485.Sequential",
- "__torch__.fastai.layers.___torch_mangle_549.SelfAttention",
- "__torch__.torch.nn.modules.container.___torch_mangle_594.Sequential",
- "__torch__.fastai.layers.___torch_mangle_557.PixelShuffle_ICNR",
- "__torch__.fastai.layers.___torch_mangle_520.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_591.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_551.Mish",
- "__torch__.torch.nn.modules.conv.___torch_mangle_489.Conv2d",
- "__torch__.fastai.vision.models.unet.___torch_mangle_531.UnetBlock",
- "__torch__.torch.nn.modules.activation.___torch_mangle_441.ReLU",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_462.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_464.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_487.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_585.PixelShuffle_ICNR",
- "__torch__.fastai.layers.___torch_mangle_522.PixelShuffle_ICNR",
- "__torch__.fastai.layers.___torch_mangle_555.ConvLayer",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_456.BatchNorm2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_574.Mish",
- "__torch__.torch.nn.modules.activation.___torch_mangle_589.Mish",
- "__torch__.torch.nn.modules.container.___torch_mangle_508.Sequential",
- "__torch__.torch.nn.modules.conv.___torch_mangle_504.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_440.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_536.PixelShuffle_ICNR",
- "__torch__.torch.nn.modules.conv.___torch_mangle_402.Conv2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_483.BatchNorm2d",
- "torch.FloatStorage",
- "__torch__.torch.nn.modules.conv.___torch_mangle_543.Conv1d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_465.BatchNorm2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_553.Conv2d",
- "__torch__.torch.nn.modules.pixelshuffle.___torch_mangle_556.PixelShuffle",
- "__torch__.torch.nn.modules.conv.___torch_mangle_567.Conv2d",
- "__torch__.fastai.vision.models.unet.___torch_mangle_552.UnetBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_541.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_568.Mish",
- "__torch__.torchvision.models.resnet.___torch_mangle_426.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_532.Conv2d",
- "__torch__.torch.nn.modules.conv.___torch_mangle_527.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_560.Mish",
- "__torch__.torchvision.models.resnet.___torch_mangle_484.BasicBlock",
- "__torch__.torch.nn.modules.conv.___torch_mangle_458.Conv2d",
- "torch._utils._rebuild_tensor_v2",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_468.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_434.BatchNorm2d",
- "__torch__.torch.nn.modules.batchnorm.___torch_mangle_452.BatchNorm2d",
- "__torch__.fastai.layers.___torch_mangle_575.ConvLayer",
- "__torch__.torch.nn.modules.conv.___torch_mangle_498.Conv2d",
- "__torch__.torch.nn.modules.activation.___torch_mangle_420.ReLU",
- "__torch__.torch.nn.modules.conv.___torch_mangle_399.Conv2d",
- "__torch__.torch.nn.modules.container.___torch_mangle_517.Sequential",
- "__torch__.fastai.layers.___torch_mangle_578.ConvLayer",
- "torch.FloatStorage",
- "torch.jit._pickle.restore_type_tag",
- "collections.OrderedDict",
- "torch._utils._rebuild_tensor_v2"
How to fix it?
166 MB
Upload unet.pth