Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion vision/object_detection_segmentation/fcn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ preprocess = transforms.Compose([
])

img = Image.open('dependencies/000000017968.jpg')
img_data = preprocess(img).detach().cpu().numpy()

#Uncomment the following line to resize to the approriate resolution
#img = img.resize((640 ,480), Image.Resampling.LANCZOS)
orig_tensor = np.array(img)
Copy link
Member

Choose a reason for hiding this comment

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

import numpy as np is missing.

img_data = utils.preprocess(orig_tensor)
Copy link
Member

Choose a reason for hiding this comment

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

What's `utils? Or it refers to the preprocess function defined above?

img_data = img_data.unsqueeze(0)
img_data = img_data.detach().cpu().numpy()
```

### Output of model
Expand Down