Skip to content

Conversation

oindrilasaha
Copy link
Contributor

Add face detection, visual wakeword examples

Comment on lines 79 to 80
# import pdb;pdb.set_trace()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the comment.

Comment on lines 79 to 88
#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')
'''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the comments.

Comment on lines 67 to 73
# 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)
Copy link
Contributor

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
Copy link
Contributor

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()
Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Collaborator

@harsha-simhadri harsha-simhadri left a 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:

  1. move this file to git lfs, its 6+MB: examples/pytorch/vision/cpp/trace_0_input.npy
  2. Could you please remove this empty file: examples/pytorch/vision/cpp/trace_0_output.npy

@harsha-simhadri harsha-simhadri force-pushed the oindrila-rnn branch 4 times, most recently from 31fc4ef to f6ca1e6 Compare October 2, 2020 19:46
@harsha-simhadri harsha-simhadri merged commit 373a7a1 into master Oct 2, 2020
@harsha-simhadri harsha-simhadri deleted the oindrila-rnn branch October 3, 2020 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants