StitchKoala / STLM

10 stars 1 forks source link

ValueError #2

Closed isyzwang closed 3 months ago

isyzwang commented 5 months ago

你好,我在运行trainSTLM.py文件时,报错ValueError: Input and output must have the same number of spatial dimensions, but got input with spatial dimensions of [] and output size of torch.Size([256, 256]). Please provide input tensor in (N, C, d1, d2, ...,dK) format and output size in (o1, o2, ...,oK) format.

flyingtiger111 commented 4 months ago

你好,我在运行trainSTLM.py文件时,报错ValueError: Input and output must have the same number of spatial dimensions, but got input with spatial dimensions of [] and output size of torch.Size([256, 256]). Please provide input tensor in (N, C, d1, d2, ...,dK) format and output size in (o1, o2, ...,oK) format.

你解决了这个问题了吗?我复现的时候,遇到了同样的报错

ctj1007 commented 3 months ago

Have you solved it? I had the same problem

StitchKoala commented 3 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

flyingtiger111 commented 3 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

ctj1007 commented 3 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 图像 Thanks for your reply

wu33learn commented 2 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

请问你运行出来了吗,我把https://github.com/ChaoningZhang/MobileSAM/tree/master/mobile_sam/modeling 这个文件夹下的mask_decoder替换了,现在用3090跑,差不多3小时了,capsule还没跑完。

flyingtiger111 commented 2 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

请问你运行出来了吗,我把https://github.com/ChaoningZhang/MobileSAM/tree/master/mobile_sam/modeling 这个文件夹下的mask_decoder替换了,现在用3090跑,差不多3小时了,capsule还没跑完。

程序能跑通。就是时间很长。

wu33learn commented 2 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

请问你运行出来了吗,我把https://github.com/ChaoningZhang/MobileSAM/tree/master/mobile_sam/modeling 这个文件夹下的mask_decoder替换了,现在用3090跑,差不多3小时了,capsule还没跑完。

程序能跑通。就是时间很长。

请问你用啥配置跑的啊,我这个正常吗,跑三个小时了,capsule没动过了,看gpu是都在运行

wu33learn commented 2 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

请问你运行出来了吗,我把https://github.com/ChaoningZhang/MobileSAM/tree/master/mobile_sam/modeling 这个文件夹下的mask_decoder替换了,现在用3090跑,差不多3小时了,capsule还没跑完。

程序能跑通。就是时间很长。

请问你用啥配置跑的啊,我这个正常吗,跑三个小时了,capsule没动过了,看gpu是都在运行

请问我这样安装mobile sam正确吗

flyingtiger111 commented 2 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

请问你运行出来了吗,我把https://github.com/ChaoningZhang/MobileSAM/tree/master/mobile_sam/modeling 这个文件夹下的mask_decoder替换了,现在用3090跑,差不多3小时了,capsule还没跑完。

程序能跑通。就是时间很长。

请问你用啥配置跑的啊,我这个正常吗,跑三个小时了,capsule没动过了,看gpu是都在运行

同3090 。我记得一个类跑了好长时间(单位是天),后来我就放弃了

wu33learn commented 2 months ago

你好,需要修改mask_decoder,返回decoder中间的两个feature,文件已上传 image

是不是要将mob_sam.py中的self.model.mask_decoder修改成您提供的mask_decoder? 似乎需要两个关键参数 required keyword-only arguments: 'transformer_dim' and 'transformer'

请问你运行出来了吗,我把https://github.com/ChaoningZhang/MobileSAM/tree/master/mobile_sam/modeling 这个文件夹下的mask_decoder替换了,现在用3090跑,差不多3小时了,capsule还没跑完。

程序能跑通。就是时间很长。

请问你用啥配置跑的啊,我这个正常吗,跑三个小时了,capsule没动过了,看gpu是都在运行

同3090 。我记得一个类跑了好长时间(单位是天),后来我就放弃了

我滴妈啊,那么长,算了不弄了,谢谢啊,不然我都不知道呢,感谢噢