Generando mariposas
Browse files- requeriments.txt +0 -3
- utils.py +3 -3
requeriments.txt
CHANGED
@@ -1,5 +1,2 @@
|
|
1 |
git+https://github.com/huggingface/community-events.git@3fea10c5d5a50c69f509e34cd580fe9139905d04#egg=huggan
|
2 |
transformers
|
3 |
-
faiss-cpu
|
4 |
-
paddlehub
|
5 |
-
paddlepaddle
|
|
|
1 |
git+https://github.com/huggingface/community-events.git@3fea10c5d5a50c69f509e34cd580fe9139905d04#egg=huggan
|
2 |
transformers
|
|
|
|
|
|
utils.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import numpy as np
|
2 |
import torch
|
3 |
-
from huggan.pytorch.
|
4 |
|
5 |
-
def carga_modelo(model_name="ceyda/butterfly_cropped_uniq1K_512",model_version=None):
|
6 |
-
gan = LightweightGAN.from_pretrained(model_name,version=model_version)
|
7 |
gan.eval()
|
8 |
return gan
|
9 |
|
|
|
1 |
import numpy as np
|
2 |
import torch
|
3 |
+
from huggan.pytorch.lightweight_gan.lightweight_gan import LightweightGAN
|
4 |
|
5 |
+
def carga_modelo(model_name="ceyda/butterfly_cropped_uniq1K_512", model_version=None):
|
6 |
+
gan = LightweightGAN.from_pretrained(model_name, version=model_version)
|
7 |
gan.eval()
|
8 |
return gan
|
9 |
|