Comments (2)
I encountered the same issue, and was able to fix it by modifying the code as
state_dict = model.state_dict().copy()
state_dict_old = torch.load(args.CDGNET_ckpt, map_location='cpu')
- for key, nkey in zip(state_dict_old.keys(), state_dict.keys()):
+ state_dict_keys = list(state_dict.keys())
+ for key, nkey in zip(state_dict_old.keys(), state_dict_keys):
if key != nkey:
# remove the 'module.' in the 'key'
state_dict[key[7:]] = deepcopy(state_dict_old[key])
and then downloading a different version of LIP_epoch_149.pth
from this Google Drive link, posted in tjpulkl/CDGNet#5.
Hope this helps!
from neuralhaircut.
Hi Kenshi,
yeah the checkpoint file you linked works well. The size is bigger than the one indicated by the authors, so that may be corrupted.
Thanks a lot.
from neuralhaircut.
Related Issues (18)
- Afro hairs, anyone ? xD HOT 1
- numpy.core._exceptions._ArrayMemoryError: Unable to allocate HOT 4
- Couldn't create the environment using .yaml HOT 2
- second stage loss HOT 9
- Unable to create the enviroment in any of my devices
- Example Result HOT 1
- How does NeuralHaircut overcome the "noisy orientations map" problem in real-world data? HOT 2
- How to generate `initialization_pixie` file while executing the `multiview_optimization` HOT 1
- Unconditional random sampling from pretrained diffusion model HOT 1
- Need support section for further updates...
- About strand_ckpt. pth
- Add some about section to elaborate the aim of this site....
- Error testing the example provided HOT 4
- ValueError: need at least one array to stack HOT 4
- PIXIE initialization HOT 3
- Experiment folder cannot be crated on Windows HOT 4
- Can use own dataset? HOT 2
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 neuralhaircut.