-
Notifications
You must be signed in to change notification settings - Fork 381
Merge RNNPool Codes #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge RNNPool Codes #201
Conversation
# import pdb;pdb.set_trace() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment.
#img = Image.fromarray(img) | ||
''' | ||
draw = ImageDraw.Draw(img) | ||
w,h = img.size | ||
for bbox in sample_labels: | ||
bbox = (bbox[1:] * np.array([w, h, w, h])).tolist() | ||
draw.rectangle(bbox,outline='red') | ||
img.save('image.jpg') | ||
''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comments.
# stateList_reverse = tuple(reversed(stateList)) | ||
|
||
# outputs_reverse = self.cell_bidirrnn(torch.stack(stateList_reverse), | ||
# (torch.randn(batch_size, self.nHiddenDimsBiDir).to(torch.device("cuda")), | ||
# torch.randn(batch_size, self.nHiddenDimsBiDir).to(torch.device("cuda")))) | ||
|
||
# finalHidden2 = torch.cat([outputs[-1],outputs_reverse[-1]],1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments.
|
||
self.numClasses = numClasses | ||
self.inputDims = self.FastObj.input_size | ||
# self.inputDims = self.FastObj.input_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the comment.
k = shuffled[j * batchSize:(j + 1) * batchSize] | ||
batchX = Xtrain[:, k, :] | ||
batchY = Ytrain[k] | ||
# import pdb;pdb.set_trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the comment.
maxTestAccEpoch = i | ||
maxTestAcc = testAcc | ||
self.saveParams(currDir) | ||
# self.saveParams(currDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we comment this out?
…to oindrila-rnn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oindrilasaha
Could you please:
- move this file to git lfs, its 6+MB: examples/pytorch/vision/cpp/trace_0_input.npy
- Could you please remove this empty file: examples/pytorch/vision/cpp/trace_0_output.npy
31fc4ef
to
f6ca1e6
Compare
8da015e
to
df66d9f
Compare
Add face detection, visual wakeword examples