Repository navigation
TorchSharp for Image classification & Image detection or segmentation #1011
GeorgeS2019
started this conversation in
Show and tell
Replies: 2 comments
|
https://github.com/dotnet/TorchSharp/blob/main/src/TorchVision/dsets/CelebA.cs [Fact]
public void TestCeleba()
{
// There's no data so it throws an exception.
Assert.Throws<InvalidDataException>(() => {
using (var dataset = CelebA(".", download: false)) {
}
});
}
[Fact]
public void TestCelebaWithTransform()
{
// There's no data so it throws an exception.
Assert.Throws<InvalidDataException>(() => {
var my_transform = new MyTransform();
using (var dataset = CelebA(".", transform: my_transform)) {
var loader = new DataLoader(dataset, 10, shuffle: true);
foreach (var batch in loader) {
}
}
});
} |
0 replies
Possible ExampleGenerative Adversarial Networkshttps://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html https://github.com/jpowie01/DCGAN_CelebA |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Image classification
Image detection or segmentation
TorchSharp for face attribute recognition, detection, landmark localization, and face editing & synthesis
https://pytorch.org/vision/main/generated/torchvision.datasets.CelebA.html
torchvision.datasets.CelebA by @kaiidams
References
All reactions