Git Product home page Git Product logo

dnn-topology's People

Contributors

cipriancorneanu 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

Watchers

 avatar  avatar  avatar  avatar  avatar

dnn-topology's Issues

Question about build_graph_functional.py

Dear Ciprian, your code looks amazing!

We are currently using it for some research but we found a line of code we can not understand. In this step of the code:

passer = Passer(net, functloader, criterion, device)

We do not get why you create two passers. We thought this could be related to reference passing and OOP stuff. We tried removing the "passer_test" variable and operating only with one passer and the results are the same. Is this an unintended code duplication or is it a bug?

Thank you for this interesting work!

README.md seems out of date

Hi all. This is a good work but it seems that the README.md is out of date and not workable. Specifically,

The command to install DIPHA doesn't seem to work.

cd ./dipha
cmake -H. .Bbuild
cmake --build build -- -j3

and gives me

CMake Error: The source directory ".../dnn-topology/dipha/.Bbuild" does not exist.

Also it appears that the running file

python main.py --net lenet --dataset mnist --trial 0 --lr 0.001  --n_epochs_train 50 --epochs_test '10 20 30 40 50' --graph_type functional --homology_type 'persistent' --train 1 --build_graph 1

is not valid. There is no main.py file and the options do not work for train.py

AttributeError because DataParallel does not forward call to 'forward_features(..)'

Dear Ciprian,
first of all, thanks for this great project!

I think i found a bug when following the 'Quick Start'-section in the README.md. When running

python main.py --net lenet --dataset mnist --trial 0 --lr 0.0005  --n_epochs_train 50 --epochs_test '1 5 10 20 30 40 50' --graph_type functional --train 1 --build_graph 1

i receive this AttributeError

AttributeError: 'DataParallel' object has no attribute 'forward_features'

originating from the following line

features.append([f.cpu().data.numpy().astype(np.float16) for f in self.network.forward_features(inputs)])

I resolved it by replacing self.network.forward_features(inputs) with self.network.module.forward_features(inputs).

The problem seems to be that DataParallel does only forward specific function to the encapsulated model. This might also be a problem in other parts of the project (e.g. passers.py line 95).

License missing

Hello,

thank you for this project. I would like to use it and make some changes, but I wonder what is the license for this code? Could you please make that precise? Thank you in advance

Best wishes

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.