GithubHelp home page GithubHelp logo

wmpscc / cnn-series-getting-started-and-pytorch-implementation Goto Github PK

View Code? Open in Web Editor NEW
58.0 1.0 12.0 36.36 MB

我的笔记和Demo,包含分类,检测、分割、知识蒸馏。

Home Page: http://ishero.net/

Python 44.94% Jupyter Notebook 55.06%
cnn googlenet nin cnn-series vgg alexnet multi-layer-perceptron inception-resnet densenet pytorch

cnn-series-getting-started-and-pytorch-implementation's Issues

关于知识蒸馏的一些问题

作者您好:
在您的知识蒸馏相关代码中,我发现有关于蒸馏部分的代码有缺失,您只展示了教师和学生模型分别训练的过程,请问如何体现蒸馏过程呢?
期待您的回复。

AlexNet/CreateTFRecord.py 中 def writerRecord(save_path, HOME_PATH, coord=None, t_id=0):

def writerRecord(save_path, HOME_PATH, coord=None, t_id=0):
writerTrain = tf.python_io.TFRecordWriter(os.path.join(save_path, "train" + str(t_id) + ".tfrecords"))
randIndexTrain = random.sample(range(0, len(trainPaths)), len(trainPaths))
size = int(len(randIndexTrain) / 4)
randIndexTrain = randIndexTrain[t_id * size: (t_id + 1) * size]
sess = tf.Session()

使用一个t_id变量来将训练集分为几个不同的tfrecords吗?
但是使用random.sample(),每次运行都会重新随机,用[t_id * size: (t_id + 1) * size]来确定范围,无法保证每次随机结果一样,那么每次手动更改t_id变量将无意义,无法生成所有图像的tfrecords
建议一次随机后使t_id自动循环,避免多次随机
本人新手,不太理解,所以提问一下,还请指教^_^

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.