Update trellis/pipelines/trellis_image_to_3d.py
Browse files335 unmodified lines336337338339340341342335 unmodified lines"""Lazy loading of the BiRefNet model"""from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation, AutoModelForImageSegmentationself.birefnet_model = AutoModelForImageSegmentation.from_pretrained('weights/BiRefNet',trust_remote_code=True).to(self.device)self.birefnet_model.eval()335 unmodified lines336337338339340341342335 unmodified lines"""Lazy loading of the BiRefNet model"""from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation, AutoModelForImageSegmentationself.birefnet_model = AutoModelForImageSegmentation.from_pretrained('ZhengPeng7/BiRefNet',trust_remote_code=True).to(self.device)self.birefnet_model.eval()
trellis/pipelines/trellis_image_to_3d.py+1-1