Giter Site home page Giter Site logo

Comments (7)

A03ki avatar A03ki commented on July 26, 2024 1

Hi, @nene211.
Thank you for using this repository.
I see you have a few questions, so I'll answer them in order.

When I use my own image dataset to train the WGAN, both of its G_loss and D_loss are negative numbers, I wonder if this situation is right?

Taking negative values is not necessarily a false result. Please check the two losses continue to change stably. (It may be hard work to check the fluctuation of the two losses in this repository.)

And Im not really understand what the class mean, for example, I have 100 normal images and 100 ano images, so I put 100 normal images in the path "your own dataset-dataset-train-class0", and put the 100 ano images in the path"your own dataset-dataset-test-class0", then I run wgangp.py, izif.py, detection.py and save.py one by one?

Yes! You can get the training and test results by executing the following commands in order.

python train_wgangp.py "your own dataset-dataset-train-class0"
python train_encoder_izif.py "your own dataset-dataset-train-class0"
python test_anomaly_detection.py "your own dataset-dataset-train-class0"
python save_compared_images.py "your own dataset-dataset-train-class0" --n_iters 0 --n_grid_lines 10

and the size of my pictures are all 64*64, so...is something wrong in my dataset?

That image size is fine.

I hope that answers your questions.

from f-anogan.

nene211 avatar nene211 commented on July 26, 2024 1

thank you so much! It runs well on my image dataset and the accuracy is high! Thank you!!!

from f-anogan.

A03ki avatar A03ki commented on July 26, 2024 1

Hi, @nene211. Thank you for your question.
That's correct. If your image is not 64×64, it will be automatically resized to the default value (64×64).

from f-anogan.

nene211 avatar nene211 commented on July 26, 2024 1

OkOk,thank you again for your excellent codes and answers, you really help me a lot!

from f-anogan.

nene211 avatar nene211 commented on July 26, 2024

and the size of my pictures are all 64*64, so...is something wrong in my dataset?

from f-anogan.

nene211 avatar nene211 commented on July 26, 2024

well...i get a high accurary, the only problem is the loss...

from f-anogan.

nene211 avatar nene211 commented on July 26, 2024

Well I have another question now...@A03ki
I want to know that if my image is not 64*64, should i change some parameters of the model? Or i just put my images in the train/test folders and run without changing anyting of the codes?

from f-anogan.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.