Comments (4)
I'm not sure which repo you're talking about, but from the error it looks like the code you're running is trying to load a pickle checkpoint (probably in the format of the official checkpoints) and not the standard pytorch .pt format.
You should be able to generate images with our checkpoints using the stylegan2-pytorch implementation of rosinality. If you want to use pkls, see my response to issue #22
from stylegan-nada.
Hi @rinongal thanks for your quick response.
I'm using notebook https://colab.research.google.com/github/rinongal/stylegan-nada/blob/main/stylegan_nada.ipynb
Using FFHQ as base and with CLIP-driven training, I've generated a new model, saved as /content/output/checkpoint/000001.pt
With this result, I've tried to generate samples using both the generate.py file from both repos:
changing the line 59 of SETUP cell.
In both cases I got the same error (reported above) running
!python /content/stylegan_ada/generate.py --seeds 10,11 --network /content/output/checkpoint/000001.pt --outdir /content/
Probably it makes sense with the official repo, but with Rosinality's?
Thanks again
from stylegan-nada.
That's odd. The error you posted is specifically failing in a pickle.load call, which doesn't exist in Rosinality's generate.py (he loads with torch.load).
His code also has a different set of arguments. I.e. there is no --seeds argument and he takes a path to a checkpoint with --ckpt and not with --network.
If you're running the command you posted as is in both directories then you're never actually runing Rosinality's version. You're calling the official one every time because you're using the full /content/stylegan_ada/generate.py path (rather than, for example, /content/stylegan2-pytorch/generate.py)
from stylegan-nada.
Absolutely my mistake. I was using correct path (to Rosinality's generator) but standard repo arguments. Many thanks, closing issue
from stylegan-nada.
Related Issues (20)
- Gradio related inquiry HOT 1
- Question about specifying the style HOT 4
- About the bug when running Demo HOT 7
- Style transfer of "White Walker" HOT 1
- How to use style mapper HOT 1
- A specific domain changes in global direction HOT 1
- Sample Code for retraining OASIS HOT 2
- Control eye position HOT 2
- Question about gradient of transforms HOT 2
- Unexpexted output when providing randomly sampled latents HOT 1
- clip_model_weights and auto_layer_k HOT 3
- Nvidia error when running docker-compose up HOT 1
- Cross-domain image interpolation HOT 3
- When choose other than 'ffhq' for source model type
- i want to add eyeglasses boundary from stylegan ffhq . HOT 1
- unauthorized: authentication required on docker compose up
- Ajout de nouvelle couche dans le modèle de stylegan_nada(transfert learning)
- image2image
- Migration with a specific content image HOT 5
- Performance Metric Missing 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 stylegan-nada.