Comments (3)
Thanks a lot.
Just wanted to say that every time I tried running python train_wgangp.py "." -f
my computer crashed after couple of gigabytes downloaded. I guess it was a problem with memory leak. However I have downloaded PCAM manually, pasted it in pcam folder and I guess it's working:)
from f-anogan.
Hi, @tymsoncyferki.
Thanks for using this repository.
- If you use the PCAM dataset, you can modify code as follows.
First, replace ImageFolder
with PCAM
in your_own_dataset.
# from torchvision.datasets import ImageFolder
from torchvision.datasets import PCAM
Next, change dataset = ImageFolder()
to dataset = PCAM()
.
# dataset = ImageFolder(opt.train_root, transform=transform)
dataset = PCAM(opt.train_root, split="train", transform=transform,
download=opt.force_download)
If the file is your_own_dataset/save_compared_images.py or test_anomaly_detection.py, replace split="train"
with split="test"
and opt.train_root
with opt.test_root
.
Then run the following command:
python train_wgangp.py "." -f
- Yes, it will work. It will resize 96x96x3 to 64x64x3. If you want to train models on 96x96x3 images, please include the following option
--img_size 96
.
python train_wgangp.py "." -f --img_size 96
I hope you will go well.
from f-anogan.
I'm glad to hear that you managed to get it working!
from f-anogan.
Related Issues (12)
- Graph values is off. HOT 4
- I want to train this f-anoGAN networks with my image datasets. HOT 1
- Question about images_e encoder output HOT 2
- I want to train this f-anoGAN networks with my image datasets. HOT 8
- Has anyone succeeded in DAGM2007 dataset? HOT 1
- python setup.py install HOT 3
- Huge generator and tiny discriminator? HOT 3
- How can I implement a validation dataset? HOT 5
- G_loss and D_loss are negative numbers when running train_wgangp.py using my own image dataset HOT 7
- Need absolute value for image subtraction HOT 1
- wrong line in mvtec jupyter notebook HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from f-anogan.