Comments (7)
@unixpickle
Thanks for your reply. I used pytorch 1.8+cu113 in Ubuntu18.04. I will try to update it and reply to you.
from shap-e.
I have successfully get the mesh and ply result. I install all the requirements follow the setup.py by the command
pip install -e .
then everything is ok. The torch I use now is torch 2.0.1.
from shap-e.
TypeError Traceback (most recent call last) Cell In[3], line 1 ----> 1 xm = load_model('transmitter', device=device) 2 model = load_model('text300M', device=device) 3 diffusion = diffusion_from_config(load_config('diffusion'))
File ~/Projects/shap-e/shap_e/models/download.py:146, in load_model(model_name, device, **kwargs) 139 def load_model( 140 model_name: str, 141 device: torch.device, 142 **kwargs, 143 ) -> Dict[str, torch.Tensor]: 144 from .configs import model_from_config --> 146 model = model_from_config(load_config(model_name, **kwargs), device=device) 147 model.load_state_dict(load_checkpoint(model_name, device=device, **kwargs)) 148 model.eval()
File ~/Projects/shap-e/shap_e/models/configs.py:59, in model_from_config(config, device) 56 return MultiviewTransformerEncoder(device=device, dtype=torch.float32, **config) 57 elif name == "Transmitter": 58 # device = torch.device('cuda') ---> 59 renderer = model_from_config(config.pop("renderer"), device=device) 60 param_shapes = { 61 k: v.shape[1:] for k, v in batch_meta_state_dict(renderer, batch_size=1).items() ... 97 ) 99 mlp_init(self.mlp, init=init, init_scale=init_scale) 101 self.activation = get_act(activation)
TypeError: init() got an unexpected keyword argument 'device'
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
add this in line 1
from shap-e.
@jayanthd26
Thanks for your fast reply! However, I encountered with the error when I was running the "sample_text_to_3d.ipynb", which has added the code "device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')" in line 8, before the function "load_model". I think it may have other ways to fix it?
from shap-e.
Wha version of pytorch are you running with? Try upgrading.
from shap-e.
@unixpickle Thanks for your reply. I used pytorch 1.8+cu113 in Ubuntu18.04. I will try to update it and reply to you.
bro,have you sloved this problem,how?
from shap-e.
@ALLIZZWELL123 Sorry, for some reason, I haven't tried the update yet. I will try as soon as possible. On the other hand, welcome to solve the problem jointly! Thanks!
from shap-e.
Related Issues (20)
- Easy Tutorial? HOT 3
- TypeError: 'type' object is not subscriptable
- Image to 3d: Results always look like a cube square or shape confined to a cube
- Problems with encode_model HOT 3
- Join discord of 3d modeling HOT 1
- Can I decide the Object size? HOT 2
- About the saved obj mesh files. HOT 3
- How to control number of 3D model faces? HOT 3
- Conditioning on text AND image at the same time?
- ModuleNotFoundError: No module named 'torch' HOT 1
- RuntimeError: Not compiled with GPU support
- βStrβ object has no attribute device
- RuntimeError in sample_image_to_3d.ipnb HOT 2
- Encoder can only fit 1 obj?
- need setup.py adding pytorch3d by default installation HOT 2
- How to render images with white background? HOT 1
- When will Shap-e be added to Openai's API?
- how to create obj(not per-vertex colored) legacy and material (mtl) file and texture map files from the obj?? HOT 1
- Extremely weird bug like easter egg with the very prompt "apple"
- RuntimeError: Not compiled with GPU support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shap-e.