GithubHelp home page GithubHelp logo

Comments (2)

ribeiromarilene avatar ribeiromarilene commented on September 28, 2024

Comments
danial880 commented on Nov 11, 2023
It gives an error while loading image_cond.pt. Here is the traceback

Cell In[6], line 2
1 xm = load_model('transmitter', device=device)
----> 2 model = load_model('image300M', device=device)
3 diffusion = diffusion_from_config(load_config('diffusion'))

File ~/Desktop/shap-e/shap_e/models/download.py:147, in load_model(model_name, device, **kwargs)
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()
149 return model

File ~/Desktop/shap-e/shap_e/models/download.py:133, in load_checkpoint(checkpoint_name, device, progress, cache_dir, chunk_size)
129 if checkpoint_name not in MODEL_PATHS:
130 raise ValueError(
131 f"Unknown checkpoint name {checkpoint_name}. Known names are: {MODEL_PATHS.keys()}."
132 )
--> 133 path = fetch_file_cached(
134 MODEL_PATHS[checkpoint_name], progress=progress, cache_dir=cache_dir, chunk_size=chunk_size
135 )
136 return torch.load(path, map_location=device)

File ~/Desktop/shap-e/shap_e/models/download.py:64, in fetch_file_cached(url, progress, cache_dir, chunk_size)
62 local_path = os.path.join(cache_dir, url.split("/")[-1])
63 if os.path.exists(local_path):
---> 64 check_hash(local_path, expected_hash)
65 return local_path
67 response = requests.get(url, stream=True)

File ~/Desktop/shap-e/shap_e/models/download.py:88, in check_hash(path, expected_hash)
86 actual_hash = hash_file(path)
87 if actual_hash != expected_hash:
---> 88 raise RuntimeError(
89 f"The file {path} should have hash {expected_hash} but has {actual_hash}. "
90 "Try deleting it and running this call again."
91 )

RuntimeError: The file /home/danial/Desktop

from shap-e.

ribeiromarilene avatar ribeiromarilene commented on September 28, 2024

Comments
danial880 commented on Nov 11, 2023
It gives an error while loading image_cond.pt. Here is the traceback

Cell In[6], line 2
1 xm = load_model('transmitter', device=device)
----> 2 model = load_model('image300M', device=device)
3 diffusion = diffusion_from_config(load_config('diffusion'))

File ~/Desktop/shap-e/shap_e/models/download.py:147, in load_model(model_name, device, **kwargs)
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()
149 return model

File ~/Desktop/shap-e/shap_e/models/download.py:133, in load_checkpoint(checkpoint_name, device, progress, cache_dir, chunk_size)
129 if checkpoint_name not in MODEL_PATHS:
130 raise ValueError(
131 f"Unknown checkpoint name {checkpoint_name}. Known names are: {MODEL_PATHS.keys()}."
132 )
--> 133 path = fetch_file_cached(
134 MODEL_PATHS[checkpoint_name], progress=progress, cache_dir=cache_dir, chunk_size=chunk_size
135 )
136 return torch.load(path, map_location=device)

File ~/Desktop/shap-e/shap_e/models/download.py:64, in fetch_file_cached(url, progress, cache_dir, chunk_size)
62 local_path = os.path.join(cache_dir, url.split("/")[-1])
63 if os.path.exists(local_path):
---> 64 check_hash(local_path, expected_hash)
65 return local_path
67 response = requests.get(url, stream=True)

File ~/Desktop/shap-e/shap_e/models/download.py:88, in check_hash(path, expected_hash)
86 actual_hash = hash_file(path)
87 if actual_hash != expected_hash:
---> 88 raise RuntimeError(
89 f"The file {path} should have hash {expected_hash} but has {actual_hash}. "
90 "Try deleting it and running this call again."
91 )

RuntimeError: The file /home/danial/Desktop

from shap-e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.