profile
viewpoint
haoqiang hao-qiang minivision NanJing, China

minivision-ai/photo2cartoon 1666

人像卡通化探索项目 (photo-to-cartoon translation project)

hao-qiang/AM-Softmax 21

This is an AM-Softmax tutorial and keras implementation.

hao-qiang/GANimation-tf 12

A tensorflow implementation of GANimation

hao-qiang/pix2pix_keras 9

This is a keras implementation of paper Image-to-Image Translation with Conditional Adversarial Networks

hao-qiang/real-time_emotion_recognition 5

A real-time emotion recognition project which can run on CPU

hao-qiang/perceptual_loss_for_super_resolution 3

Different content losses for super resolution task: L1/L2 losses, perceptual loss and style loss.

hao-qiang/find-couple_face_recognition 2

Find couple in the photo and make up

hao-qiang/mediapipe 0

MediaPipe is a cross-platform framework for building multimodal applied machine learning pipelines

startedjiaxiangshang/MGCNet

started time in 17 hours

startedzihangJiang/DR-Learning-for-3D-Face

started time in 17 hours

startedkychern/FacialRetargeting

started time in 17 hours

startedtensorflow/graphics

started time in 3 days

push eventminivision-ai/photo2cartoon

haoqiang

commit sha ac0920e22142b3989488ffa7a4c722afbe8d333f

add logs

view details

push time in 3 days

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 5f688600b979366ede4657cc47d3b9a82fcb8316

add logs

view details

push time in 3 days

startedICT-VGL/ICT-FaceKit

started time in 6 days

issue commentminivision-ai/photo2cartoon

finetuning

Please refer to: https://github.com/minivision-ai/photo2cartoon/blob/7590ed0396e648fb7437cd98a5cc59289d4ba5c1/models/UGATIT_sadalin_hourglass.py#L137-L146

ak9250

comment created time in 8 days

issue closedminivision-ai/photo2cartoon

使用test.py后,face alignment提示报错

我是Python新手,我在使用 test.py 时碰到了问题。一直卡在 self.fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False)这一句上,我猜测的原因为pytorch的模型没加载好。

粘贴的图形-2 粘贴的图形-1

closed time in 8 days

shenghanqin

issue commentminivision-ai/photo2cartoon

finetuning

You can finetune with '--pretrained_weights', and step will start from 0.

ak9250

comment created time in 8 days

issue commentminivision-ai/photo2cartoon

使用test.py后,face alignment提示报错

这个是face-alignment库下载模型不成功导致的,关于关键点检测模型下载问题可以参考 #3

shenghanqin

comment created time in 8 days

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 7590ed0396e648fb7437cd98a5cc59289d4ba5c1

add QQ group

view details

push time in 11 days

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 8827fe1f346288edb7748aa93cadef4070f4e5be

add QQ group

view details

push time in 12 days

issue closedminivision-ai/photo2cartoon

ModuleNotFoundError: No module named 'face_alignment'

I try to run it in google colab. https://colab.research.google.com/drive/1kt3JpWFvmlmjv4lGQrKNNRKVoOqsw6uV?usp=sharing But getting an error.

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    from models import ResnetGenerator
  File "/content/photo2cartoon/models/__init__.py", line 2, in <module>
    from .UGATIT_sadalin_hourglass import UgatitSadalinHourglass
  File "/content/photo2cartoon/models/UGATIT_sadalin_hourglass.py", line 7, in <module>
    from utils import *
  File "/content/photo2cartoon/utils/__init__.py", line 1, in <module>
    from .preprocess import Preprocess
  File "/content/photo2cartoon/utils/preprocess.py", line 1, in <module>
    from .face_detect import FaceDetect
  File "/content/photo2cartoon/utils/face_detect.py", line 4, in <module>
    import face_alignment
ModuleNotFoundError: No module named 'face_alignment'

closed time in 13 days

AlexanderKozhevin

issue commentminivision-ai/photo2cartoon

ModuleNotFoundError: No module named 'face_alignment'

you can install face_alignment by

pip install face_alignment

AlexanderKozhevin

comment created time in 17 days

issue closedhao-qiang/GANimation-tf

Trained model

Hi, Do you have trained model for GANimation?

closed time in 19 days

zxh009123

issue closedhao-qiang/GANimation-tf

the password about emotionNet dataset

Hi,hao-qiang thanks for your works,have you got the password about emotionet dataset?

closed time in 19 days

sohey1910

issue closedhao-qiang/GANimation-tf

emotionnet

哈喽~ 我想请问一下您的数据集怎么下载的呀?我填写了表格然后一直都在Your Request is Being Processed。。。如果可以的话能不能回复一下~谢谢!

1252059873@qq.com

closed time in 19 days

YisuZhou

startedminivision-ai/Silent-Face-Anti-Spoofing-APK

started time in a month

issue commentminivision-ai/photo2cartoon

头像分割模型的训练数据集

目前没有开源分割数据的计划,你可以使用其他开源的分割数据训练。

WANGRuoxi233

comment created time in a month

push eventminivision-ai/photo2cartoon

haoqiang

commit sha eac916f8864f08e0274cca6d43e10838de2ee451

save single gpu model

view details

push time in a month

issue closedminivision-ai/photo2cartoon

请问你是怎么成功把pytorch1.4和tensorflow1.14装到同一个环境里面的

按照你们的要求,请问你是怎么成功把pytorch1.4和tensorflow1.14装到同一个环境里面的,因为pytorch1.14需要cuda10.2,而tensorflow1.14需要cuda10.0,这个问题你们是怎么解决的?

closed time in a month

tuobay

issue closedminivision-ai/photo2cartoon

运行demo一直提示: Downloading the Face Alignment Network(FAN). Please wait...

运行: python test.py --photo_path ./images/photo_test.jpg --save_path ./images/cartoon_result.png

一直提示: Downloading the Face Alignment Network(FAN). Please wait...

国内下载不动

有什么办法快速下载这个包吗?

closed time in a month

abo123456789

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 1b44145c27063eb7b38a3bf7a0a680f54e4fff92

support multi-gpu training

view details

push time in a month

issue commentminivision-ai/photo2cartoon

运行demo一直提示: Downloading the Face Alignment Network(FAN). Please wait...

关于关键点检测模型下载问题可以参考 #3

abo123456789

comment created time in a month

startedFuxiCV/3D-Face-GCNs

started time in a month

issue commentminivision-ai/photo2cartoon

请问你是怎么成功把pytorch1.4和tensorflow1.14装到同一个环境里面的

  1. 建议使用conda配置环境,pytorch1.0+,tensorflow1.12+应该都可以运行。如果只是测试的话装cpu版的也可以。
  2. 关于关键点检测模型下载问题可以参考 #3
tuobay

comment created time in a month

startedchanghongjian/Deep3DFaceReconstruction-pytorch

started time in a month

startedOAID/TengineKit

started time in 2 months

issue commentminivision-ai/photo2cartoon

为什么我用你们官方的预训练模型实现的效果很差?

非常感谢您,我已经实现了基本功能,现在就是转换后的脸有点发白,调哪个参数可以改善呢?

有两种方法:

  • 将数据中的卡通画肤色调成想要的颜色,重新训练模型。
  • 使用图像处理方法加滤镜。
wwzh2015

comment created time in 2 months

issue commentminivision-ai/photo2cartoon

为什么我用你们官方的预训练模型实现的效果很差?

cartoon_result

我测试了一下效果还是不错的,没有对图像进行任何处理,直接使用如下命令:

python test.py --photo_path NaL0x.jpg --save_path result.png。

wwzh2015

comment created time in 2 months

startedsicxu/Deep3dPortrait

started time in 2 months

issue commentminivision-ai/photo2cartoon

为什么我用你们官方的预训练模型实现的效果很差?

是否方便把原图发我一下测试,关于开源模型和小程序效果的差异请见readme。

wwzh2015

comment created time in 2 months

startedalievk/avatarify

started time in 2 months

startedsefibk/KernelGAN

started time in 2 months

startedjixiaozhong/RealSR

started time in 2 months

startedmkocabas/VIBE

started time in 2 months

issue commentminivision-ai/photo2cartoon

关于模型训练的问题

模型的整体框架是cyclegan,不需要成对数据训练,但人群属性要尽量一致。

Maxhyl

comment created time in 2 months

issue commentminivision-ai/photo2cartoon

这个有移动端的应用吗,能在移动端进行实时计算吗,不要上传到服务端的那种?

直接部署在移动端的卡通化方案大多是基于传统图像处理、贴图、3d模型,基于GAN的卡通化服务基本上都是部署在服务器上的。

ZhangZoffy

comment created time in 2 months

issue commentminivision-ai/photo2cartoon

关于训练数据

我们对性别和年龄进行了分类,每类使用的卡通画约200张左右。

payne53

comment created time in 2 months

issue commentminivision-ai/photo2cartoon

这个有移动端的应用吗,能在移动端进行实时计算吗,不要上传到服务端的那种?

由于从上传照片到生成卡通化中间会经过多个模型,无法保证在所有机型上都能流畅运行,同时考虑到生成效果,我们没有对模型进行压缩,所以没有直接做移动端的部署。

ZhangZoffy

comment created time in 2 months

issue closedminivision-ai/photo2cartoon

有办法提高训练速度么?

每10个iteration大概耗时16s,200k iteration耗时有点长,

一般gan的batch_size很多设置为1, 有其他方法提升训练速度吗?

closed time in 2 months

qianlongzju

issue commentminivision-ai/photo2cartoon

为啥眼睛不对称

可能是脸部光照不均匀导致的。

TingYinHelen

comment created time in 3 months

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 8404dae8bb80f7c922610e99dc1e7e7a0e0c132a

update README.md

view details

push time in 3 months

push eventminivision-ai/photo2cartoon

haoqiang

commit sha b88402ac9aa13d54ecf5739db186b923cd56f1f1

update README.md

view details

push time in 3 months

issue closedminivision-ai/photo2cartoon

训练需要多大显存?

报错:Tried to allocate 20.00 MiB (GPU 0; 5.94 GiB total capacity; 5.22 GiB already allocated; 20.81 MiB free; 5.42 GiB reserved in total by PyTorch 是因为我的显存太小吗 T.T

closed time in 3 months

fire717

issue closedminivision-ai/photo2cartoon

关于训练的一些问题

您好我有两个问题:(1)如果重新训练一个模型,trainA和trainB数据集中大概有多少张图片才可以? (2)一般要训练到多少代(iteations)才能基本达到给出的转换效果?

closed time in 3 months

xyxxmb

issue commentminivision-ai/photo2cartoon

关于训练的一些问题

readme中有较为详细的介绍。

xyxxmb

comment created time in 3 months

startedcsbhr/CDVD-TSP

started time in 3 months

startedInterDigitalInc/HRFAE

started time in 3 months

startedYuvalNirkin/fsgan

started time in 3 months

issue commentminivision-ai/photo2cartoon

请问为何同时选择使用Tensorflow和Pytorch?使考虑到各自的哪些优点吗?

不同模块由不同成员维护,所以用到不同平台。

TheYMing

comment created time in 3 months

startedJungUnYun/Face_SRnDeblur

started time in 3 months

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 0b8f5fb2240b8bb4cc0078c6a610d2f1e061901a

update README_EN.md

view details

push time in 3 months

push eventminivision-ai/photo2cartoon

haoqiang

commit sha 6fd390ee3811d3a89490c88a3a6e1fc0f154f2bb

update README.md

view details

push time in 3 months

issue commentminivision-ai/photo2cartoon

训练需要多大显存?

12G显存的1080ti上,可以训练。

fire717

comment created time in 3 months

issue closedminivision-ai/photo2cartoon

[Feature Request] 生成 JOJO 画风的头像

如题... 这可 excited

closed time in 3 months

yuechuanx

issue closedminivision-ai/photo2cartoon

关于test

在window10环境中调用test.py: python test.py --photo_path ./images/photo_test.jpg --save_path ./images/cartoon_result.png 程序没有报错,也无法得出结果。

Warning: this detector is deprecated. Please use a different one, i.e.: S3FD. WARNING:tensorflow:From E:\DL_with_coding\photo2cartoon\utils\face_seg.py:13: The name tf.ConfigProto is deprecated. Please use tf.compat.v1. ConfigProto instead.

WARNING:tensorflow:From E:\DL_with_coding\photo2cartoon\utils\face_seg.py:16: The name tf.Session is deprecated. Please use tf.compat.v1.Sess ion instead.

2020-04-22 11:46:56.162121: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary w as not compiled to use: AVX AVX2 2020-04-22 11:46:56.167602: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library nvcuda.dll 2020-04-22 11:46:57.083446: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: name: GeForce GTX 1060 with Max-Q Design major: 6 minor: 1 memoryClockRate(GHz): 1.3415 pciBusID: 0000:01:00.0 2020-04-22 11:46:57.090947: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, ski p dlopen check. 2020-04-22 11:46:57.096467: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0 2020-04-22 11:46:58.398108: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix: 2020-04-22 11:46:58.403445: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187] 0 2020-04-22 11:46:58.406841: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1200] 0: N 2020-04-22 11:46:58.410200: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1326] Created TensorFlow device (/job:localhost/replica:0/task :0/device:GPU:0 with 4714 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 with Max-Q Design, pci bus id: 0000:01:00.0, compute capability: 6.1) WARNING:tensorflow:From E:\DL_with_coding\photo2cartoon\utils\face_seg.py:26: FastGFile.init (from tensorflow.python.platform.gfile) is d eprecated and will be removed in a future version. Instructions for updating: Use tf.gfile.GFile. WARNING:tensorflow:From E:\DL_with_coding\photo2cartoon\utils\face_seg.py:27: The name tf.GraphDef is deprecated. Please use tf.compat.v1.Gra phDef instead.

closed time in 3 months

xiaosuzhang

issue closedminivision-ai/photo2cartoon

TypeError on importing ResnetGenerator

/usr/bin/python test.py --photo_path ./images/photo_test.jpg --save_path ./images/cartoon_result.png 2020-05-05 19:57:44.377745: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.2 Traceback (most recent call last): File "test.py", line 5, in <module> from models import ResnetGenerator File "/home/pankaj/Learning/photo2cartoon/models/init.py", line 2, in <module> from .UGATIT_sadalin_hourglass import UgatitSadalinHourglass File "/home/pankaj/Learning/photo2cartoon/models/UGATIT_sadalin_hourglass.py", line 7, in <module> from utils import * File "/home/pankaj/Learning/photo2cartoon/utils/init.py", line 1, in <module> from .preprocess import Preprocess File "/home/pankaj/Learning/photo2cartoon/utils/preprocess.py", line 2, in <module> from .face_seg import FaceSeg File "/home/pankaj/Learning/photo2cartoon/utils/face_seg.py", line 4, in <module> import tensorflow as tf File "/usr/lib/python3.8/site-packages/tensorflow/init.py", line 41, in <module> from tensorflow.python.tools import module_util as _module_util File "/usr/lib/python3.8/site-packages/tensorflow/python/init.py", line 64, in <module> from tensorflow.python.framework.framework_lib import * # pylint: disable=redefined-builtin File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/framework_lib.py", line 52, in <module> from tensorflow.python.framework.importer import import_graph_def File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/importer.py", line 28, in <module> from tensorflow.python.framework import function File "/usr/lib/python3.8/site-packages/tensorflow/python/framework/function.py", line 37, in <module> from tensorflow.python.ops import resource_variable_ops File "/usr/lib/python3.8/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 41, in <module> from tensorflow.python.ops import gen_logging_ops File "/usr/lib/python3.8/site-packages/tensorflow/python/ops/gen_logging_ops.py", line 312, in <module> def image_summary(tag, tensor, max_images=3, bad_color=_execute.make_tensor("""dtype: DT_UINT8 tensor_shape { dim { size: 4 } } int_val: 255 int_val: 0 int_val: 0 int_val: 255""", "bad_color"), name=None): File "/usr/lib/python3.8/site-packages/tensorflow/python/eager/execute.py", line 229, in make_tensor text_format.Merge(v, pb) File "/usr/lib/python3.8/site-packages/google/protobuf/text_format.py", line 696, in Merge return MergeLines( File "/usr/lib/python3.8/site-packages/google/protobuf/text_format.py", line 770, in MergeLines return parser.MergeLines(lines, message) File "/usr/lib/python3.8/site-packages/google/protobuf/text_format.py", line 795, in MergeLines self._ParseOrMerge(lines, message) File "/usr/lib/python3.8/site-packages/google/protobuf/text_format.py", line 817, in _ParseOrMerge self._MergeField(tokenizer, message) File "/usr/lib/python3.8/site-packages/google/protobuf/text_format.py", line 942, in _MergeField merger(tokenizer, message, field) File "/usr/lib/python3.8/site-packages/google/protobuf/text_format.py", line 1105, in _MergeScalarField setattr(message, field.name, value) TypeError: descriptor to field 'tensorflow.TensorProto.dtype' doesn't apply to 'TensorProto' object

closed time in 3 months

pan1997
more