Coder Social home page Coder Social logo

ahmdtaha / simsiam Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 8.0 370 KB

Pytorch implementation of Exploring Simple Siamese Representation Learning

Python 100.00%
deep-learning deep-neural-networks python python3 pytorch pytorch-implementation self-supervised self-supervised-learning simsiam

simsiam's People

Contributors

ahmdtaha avatar hiromasa-h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simsiam's Issues

How to prepare my own dataset?

Hello, in your code, the dataset of cifar10 is used. But the file of cifar10 python is specialized. I want to use my own pictures to train, how do I prepare? Thank you very much.

KNN classifier gives 88.xx

Thanks for sharing the codes, Ahmed. Just to share what I got :)

2021-01-09 00:21:57,403 [INFO] train: Epoch: [798][96/97] Time 0.152 ( 0.166) Data 0.000 ( 0.006) Loss -0.960 (-0.945)
2021-01-09 00:22:04,898 [INFO] train: Finish the Trn Features -> Tst Features
2021-01-09 00:22:08,495 [INFO] train: Acc 88.69243421052632
2021-01-09 00:22:08,810 [INFO] train: ==> ETA: 0:00:54 GPU-M: 2712.0 GPU-U: 25
2021-01-09 00:22:08,810 [INFO] train: Overall Timing[798/1] epoch_time 0.4580 (0.4623) validation_time 0.1827 (0.1880) train_time 0.2701 (0.2606)
2021-01-09 00:22:09,491 [INFO] train: Epoch: [799][ 0/97] Time 0.679 ( 0.679) Data 0.587 ( 0.587) Loss -0.965 (-0.965)
2021-01-09 00:22:09,497 [INFO] train: Epoch: [799][ 0/97] Time 0.686 ( 0.686) Data 0.577 ( 0.577) Loss -0.954 (-0.954)
2021-01-09 00:22:09,508 [INFO] train: Epoch: [799][ 0/97] Time 0.697 ( 0.697) Data 0.573 ( 0.573) Loss -0.956 (-0.956)
2021-01-09 00:22:09,524 [INFO] train: Epoch: [799][ 0/97] Time 0.713 ( 0.713) Data 0.553 ( 0.553) Loss -0.959 (-0.959)
2021-01-09 00:22:24,815 [INFO] train: Epoch: [799][96/97] Time 0.152 ( 0.165) Data 0.000 ( 0.006) Loss -0.964 (-0.946)
2021-01-09 00:22:24,816 [INFO] train: Epoch: [799][96/97] Time 0.152 ( 0.165) Data 0.000 ( 0.006) Loss -0.940 (-0.946)
2021-01-09 00:22:24,833 [INFO] train: Epoch: [799][96/97] Time 0.155 ( 0.165) Data 0.000 ( 0.006) Loss -0.953 (-0.946)
2021-01-09 00:22:24,837 [INFO] train: Epoch: [799][96/97] Time 0.161 ( 0.165) Data 0.000 ( 0.007) Loss -0.949 (-0.945)
2021-01-09 00:22:32,206 [INFO] train: Finish the Trn Features -> Tst Features
2021-01-09 00:22:35,884 [INFO] train: Acc 88.7952302631579
2021-01-09 00:22:36,190 [INFO] train: ==> ETA: 0:00:27 GPU-M: 2712.0 GPU-U: 31
2021-01-09 00:22:36,190 [INFO] train: Overall Timing[799/1] epoch_time 0.4563 (0.4623) validation_time 0.1830 (0.1880) train_time 0.2682 (0.2606)

Distributed training on Cifar10

Thanks for sharing the code!
I try to train on cifar10 and find some problem: gpu_id and process rank are not match

        self.sampler = torch.utils.data.distributed.DistributedSampler(
            trn_dataset, rank=cfg.gpu, num_replicas=cfg.world_size, shuffle=True
        )

What is the purpose of the classifier_main file?

After running classifer_main, I obtained the following folders.
图片
Among them, there is a file named model_best.pth. How can I use this file? Or what is the purpose of the classifier_main file? I haven't quite understood.

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.