Git Product home page Git Product logo

pytorch-deep-generative-replay's People

Contributors

kuc2477 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pytorch-deep-generative-replay's Issues

Incremental Learning

Can incremental learning be achieved, that is to say, if a model can recognize a picture as a cat or a dog, it is necessary to add new categories on this basis and only train new categories without retraining all data?

Some errors while running and my solution

I had problems running the code initially. The first problem that I encountered was "ImportError: cannot import name 'ImageOps' ". I solved it by changing it to "from PIL import ImageOps". The second problem I had has something to do with visdom which I solved it by removing all related codes.
Hopefully the above information help someone who would like to run this code.

If anyone can provide codes that are compatible with newer PyTorch (either 0.4.1 or 1.0), Please share it !

default_collate in utils.py

Kindly help as to how to extract more than two variables (x,y) using default_collate in label_squeezing_collate_fn in utils.py.

No .eval() mode setting?

During the periodic evaluation, the solver model is utilized but the model is still in .train() mode. It might affect the training process.

Training loss explodes

I found that training loss for generator and critic will quickly explode and the accuracy can't achieve the one represented in the paper. Is it because unfit training hyperparameter? Btw, I modified the code to make it trainable with newer version pytorch.

TypeError: len() of a 0-d tensor

Hi,
I am facing the foll. issue using the pytorch, torchvision, and PIL versions (because of compatibility requirement with cuda 10.1) as:
torch: 1.4.0
torchvision: 0.5.0
PIL: 5.2.0

Traceback (most recent call last):
File "./main.py", line 186, in
cuda=cuda
File "/home/js/DGR_pytorch/train.py", line 102, in train
collate_fn=collate_fn,
File "/home/js/DGR_pytorch/dgr.py", line 130, in train_with_replay
collate_fn=collate_fn,
File "/home/js/DGR_pytorch/dgr.py", line 205, in _train_batch_trainable_with_replay
callback(trainable, progress, batch_index, result)
File "/home/js/DGR_pytorch/train.py", line 157, in cb
result['g_loss'], 'generator g loss', iteration, env=env
File "/home/js/DGR_pytorch/visual.py", line 87, in visualize_scalar
[name], name, iteration, env=env
File "/home/js/DGR_pytorch/visual.py", line 92, in visualize_scalars
assert len(scalars) == len(names)
File "/home/js/anaconda3/envs/env_con/lib/python3.5/site-packages/torch/tensor.py", line 445, in len
raise TypeError("len() of a 0-d tensor")
TypeError: len() of a 0-d tensor

Kindly suggest an alternative. Thank you.

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.