GithubHelp home page GithubHelp logo

Comments (5)

cuiaiyu avatar cuiaiyu commented on June 14, 2024 5

Hi, for demo, please put latest_net_Flow.pth for opt.flownet_path (or you can specify opt.flownet_path='' as well, because it will load the saved checkpoints later anyway.)

For training, please put the pre-trained flownet for opt.flownet_path. If you don't want to train the flownet by yourself, you can also extract the flownet weight from GFLA by:

  1. Download weights of Pose-Guided Person Image Generation (the weights trained on fashion dataset.)
  2. Then extract the flownet weights from the latest_net_G.pth (the weight of the full GFLA model) by something like
import torch
weights = torch.load("latest_net_G.pth")
flownet_weights = {w.replace("flow_net.",""): weights[w] for w in weights if w.startswith("flow_net")}
torch.save(flownet_weights, "flownet.pth")

Note GFLA is trained on 256x256 images.

from dressing-in-order.

little-misfit avatar little-misfit commented on June 14, 2024

Thanks for your answer o( ̄▽ ̄)ブ

from dressing-in-order.

XuJ1E avatar XuJ1E commented on June 14, 2024

Thanks for your answer, and I also can't find the flownet.opt file, so if there is the url for flownet.opt will be better

from dressing-in-order.

XuJ1E avatar XuJ1E commented on June 14, 2024

Thanks for your answer, and I also can't find the flownet.opt file, so if there is the url for flownet.opt will be better

There is no need to replay my question, and I have already got it, and also thank you very much about your idea

from dressing-in-order.

Rakibuz avatar Rakibuz commented on June 14, 2024

First of all, there was a issue regarding "flownet.pt" not fund, I resolved it by using opt.flownet_path='' but unfortunately now this issue arrised. What can I do ?

load vgg ckpt from torchvision dict.
[init] init pre-trained model vgg.
initialize network with orthogonal
initialize network with orthogonal
initialize network with kaiming
initialize network with orthogonal
[init] frozen net netVGG.
[init] frozen net netFlow.
[init] frozen net netE_attr.
[init] frozen net netE_attr.
not exsits checkpoints/DIOR_64/latest_net_E_attr.pth
not exsits checkpoints/DIOR_64/latest_net_G.pth
not exsits checkpoints/DIOR_64/latest_net_VGG.pth
not exsits checkpoints/DIOR_64/latest_net_Flow.pth
---------- Networks initialized -------------
[Network E_attr] Total number of parameters : 1.191 M
[Network G] Total number of parameters : 16.501 M
[Network VGG] Total number of parameters : 0.113 M
[Network Flow] Total number of parameters : 6.608 M



FileNotFoundError Traceback (most recent call last)
in ()
30 # create model
31 model = DIORModel(opt)
---> 32 model.setup(opt)

1 frames
/content/drive/MyDrive/Virtual Fitting Room/dressing-in-order-main/models/base_model.py in _init_tensorboard(self, opt)
146 if os.path.exists(self.tb_dir):
147 shutil.rmtree(self.tb_dir)
--> 148 os.mkdir(self.tb_dir)
149 self.image_dir = os.path.join(self.tb_dir, "images")
150 os.makedirs(self.image_dir, exist_ok=True)

FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/DIOR_64/test'

from dressing-in-order.

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.