Thank you for quick reply!
I’ve come to understand the situation.
In our case, our client’s visionOS is 1.3 but We have only 1.2 and 2.0.
So, If we can do, we downgrade to 1.3 and test it.
Anyway, I understand 1.3 restore image on developer site is not available.
Thank you for your support!
Post
Replies
Boosts
Views
Activity
Finally, I can access new Vision Framework API and VN prefix API without workaround on VisionOS2.0 release ver !!
Thank you so much!
I try on device, but I have same build error(Value of type 'GenerateForegroundInstanceMaskRequest' has no member 'setComputeDevice') .
I guess VisionRequest needs some extension like perfrom
function in ImageProcessingRequest.
Sorry @Frameworks Engineer , I access it just now. This is my mistake.
I will try it on device. thank you!
@Frameworks Engineer
sorry for your misunderstanding. I know this method in VisionRequest protocol.
but I can not access it from implement request class ex.GenerateForegroundInstanceMaskRequest
Value of type 'GenerateForegroundInstanceMaskRequest' has no member 'setComputeDevice'
Do you have any solution?
this is my code
let request = GenerateForegroundInstanceMaskRequest(GenerateForegroundInstanceMaskRequest.Revision.revision1)
let allDevices = MLComputeDevice.allComputeDevices
if computeDevice == nil{
for device in allDevices {
print("device.description\(device.description)")
if(device.description.contains("MLGPUComputeDevice")){
computeDevice = device
break
}
}
}
request.setComputeDevice(computeDevice,for: ComputeStage.main)
Finally, VNRequests worked successfully when I set the 'MLGPUComputeDevice' using the setComputeDevice(_:for:) method.
But, I can not use beta Vision Framework API because new API does no have setComputeDevice function or alternative function.
Anyway, thank you for advice!
Thank you for your quick reply!
I posted bug report with this forum and I will try work around in my App
Thanks!
I got same error at same situation of ZeDenis.
In Diorama Sample, this error is occurred too.