thewhole commited on
Commit
4dba62b
1 Parent(s): 92845a3

Update shape.py

Browse files
Files changed (1) hide show
  1. shape.py +1 -0
shape.py CHANGED
@@ -3,6 +3,7 @@ from shap_e.diffusion.gaussian_diffusion import diffusion_from_config as diffusi
3
  from shap_e.models.download import load_model, load_config
4
  from shap_e.util.notebooks import create_pan_cameras, decode_latent_images, gif_widget
5
  from shap_e.util.notebooks import decode_latent_mesh
 
6
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
7
  xm = load_model('transmitter', device=device)
8
  model = load_model('text300M', device=device)
 
3
  from shap_e.models.download import load_model, load_config
4
  from shap_e.util.notebooks import create_pan_cameras, decode_latent_images, gif_widget
5
  from shap_e.util.notebooks import decode_latent_mesh
6
+ import torch
7
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
8
  xm = load_model('transmitter', device=device)
9
  model = load_model('text300M', device=device)