mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-11 03:52:02 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 939cb4d938 |
@@ -59,7 +59,9 @@ class SpatialLearnedEmbeddings(nn.Module):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.height = height
|
self.height = height
|
||||||
self.width = width
|
self.width = width
|
||||||
self.channel = channel
|
self.channel = (
|
||||||
|
channel # TODO(fracapuano): this gives issues with non-square images bc is hardcoded to 4
|
||||||
|
)
|
||||||
self.num_features = num_features
|
self.num_features = num_features
|
||||||
|
|
||||||
self.kernel = nn.Parameter(torch.empty(channel, height, width, num_features))
|
self.kernel = nn.Parameter(torch.empty(channel, height, width, num_features))
|
||||||
|
|||||||
Reference in New Issue
Block a user