NVIDIA_Challenge | Coding challenge implementation for my Spring | Machine Learning library
kandi X-RAY | NVIDIA_Challenge Summary
kandi X-RAY | NVIDIA_Challenge Summary
Coding challenge implementation for my Spring 2017 NVIDIA deep learning internship.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NVIDIA_Challenge
NVIDIA_Challenge Key Features
NVIDIA_Challenge Examples and Code Snippets
Community Discussions
Trending Discussions on NVIDIA_Challenge
QUESTION
I am trying to fine-tune inceptionv3 model using slim tensorflow library. I am unable to understand certain things while writing the code for it. I tried to read source code (no proper documentation) and figured out few things and I am able to fine-tune it and save the check point. Here are the steps I followed 1. I created a tf.record for my training data which is fine, now I am reading the data using the below code.
...ANSWER
Answered 2018-Mar-30 at 18:38Here are answers to your questions.
You cannot give epochs directly to
slim.learning.train
. Instead, you give the number of batches as the argument. It is callednumber_of_steps
. It is used to set an operation calledshould_stop_op
on line 709. I assume you know how to convert number of epochs to batches.I don't think the
shuffle_batch
function will repeat images because internally it uses the RandomShuffleQueue. According to this answer, theRandomShuffleQueue
enqueues elements using a background thread as:- While
size(queue) < capacity
:- Add an element to the queue
- While
It dequeues elements as:
- While the
number of elements dequeued < batch_size
:- Wait until the
size(queue) >= min_after_dequeue + 1
elements. - Select an element from the queue uniformly at random, remove it from the queue, and add it the output batch.
- Wait until the
So in my opinion, there is very little chance that the elements would be repeated, because in the dequeuing
operation, the chosen element is removed from the queue. So it is sampling without replacement.
Will a new queue be created for every epoch?
The tensors being inputted to tf.train.shuffle_batch
are image
and label
which ultimately come from the filename_queue
. If that queue is producing TFRecord filenames indefinitely, then I don't think a new queue will be created by shuffle_batch
. You can also create a toy code like this to understand how shuffle_batch
works.
Coming to the next point, how to train over the whole dataset? In your code, the following line gets the list of TFRecord filenames.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NVIDIA_Challenge
You can use NVIDIA_Challenge like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page