yanranxiaoxi commited on
Commit
62dde71
·
verified ·
1 Parent(s): b1c23ac

chore: remove fast image processor

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -45,7 +45,6 @@ class LRMGeneratorWrapper:
45
  def __init__(self):
46
  self.config = AutoConfig.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'))
47
  self.model = AutoModel.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'))
48
- self.image_processor = AutoImageProcessor.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'), use_fast=True)
49
  self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
50
  self.model.to(self.device)
51
  self.model.eval()
 
45
  def __init__(self):
46
  self.config = AutoConfig.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'))
47
  self.model = AutoModel.from_pretrained("yanranxiaoxi/image-upscale", trust_remote_code=True, token=os.environ.get('MODEL_ACCESS_TOKEN'))
 
48
  self.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
49
  self.model.to(self.device)
50
  self.model.eval()