IssamLaradji / SSR

Apache License 2.0
3 stars 0 forks source link

module 'soft_renderer' has no attribute 'SoftRenderer' #2

Open wangleishan opened 3 years ago

wangleishan commented 3 years ago

sorry to bother you. when I run the code, it has a error,my soft_renderer is installed. how to solve it? File "/home/wangls@1/c/SSR-main/src/models.py", line 67, in init_model self.renderer = sr.SoftRenderer(image_size=exp_dict['image_size'], sigma_val=exp_dict['sigma_val'], AttributeError: module 'soft_renderer' has no attribute 'SoftRenderer'

Au233 commented 2 years ago

hi, have you solved this question? I've just met the same error as yours.

IssamLaradji commented 2 years ago

Hiya, the error is because the softras authors made changes to their api. To use the older api, you can install their code here which is from their legacy branch: https://github.com/ShichenLiu/SoftRas/tree/legacy

Au233 commented 2 years ago

Hiya, the error is because the softras authors made changes to their api. To use the older api, you can install their code here which is from their legacy branch: https://github.com/ShichenLiu/SoftRas/tree/legacy

Got it !Thanks a lot!