Giter Club home page Giter Club logo

Comments (3)

marcoamonteiro avatar marcoamonteiro commented on September 2, 2024

Hi @xvdp,

Thanks for pointing out these issues. To clarify, were you not able to run train.py when you just specified one GPU with CUDA_VISIBLE_DEVICES?

If you'd like to make a PR to fix the dataset_path for cats and carla that'd be great! To guarantee reproducibility of results let's not merge in the linting changes. For non-trivial changes we'd need to retrain models and confirm we can get the same FID scores.

from pi-gan.

xvdp avatar xvdp commented on September 2, 2024

hi @marcoamonteiro
Im working on a setup that uses cuda just fine, but does not have CUDA_VISIBLE_DEVICES. Maybe I set up my environment incorrectly but so far in a couple of years and dozens of projects ran on pytorch, tensorflow and jax, this is the only one where I found I need to set it up. I suppose I should set up a docker with your configurations and test it but that deviates from tasks at hand.

FYI: There are a few other issues in there I noticed - in most cases loading and saving needs to be done by state_dict(), not directly saving and loading the module. I'm not sure how you are avoiding that.
Also you don't create os.path.join(opt.output_dir, 'evaluation/generated')) folder anywhere in the train code. You have a ton of double class definitions. You request a device which you never pass in def create_world2cam_matrix(forward_vector, origin)

Im of the opinion that the more general setup is the one you want out there, and yet I get it that you dont want to change things that worked for your paper, so never mind .

Having worked with various nerfs, siren and stylegans, I read thru the code and I like what you are doing, it is logical. Having tried modifying and combining those papers myself however I am curious at the thought process - the failure points. You arrived at a great point, but where did you find dead ends. Forgive my stream of thought, I know this is no forum. In any case, good work.

from pi-gan.

xvdp avatar xvdp commented on September 2, 2024

And yes, you are right, the fix to multigpu is much cleaner by putting, insinde of __main__

    os.makedirs(opt.output_dir, exist_ok=True)
    os.makedirs(osp.join(opt.output_dir, 'evaluation/generated'), exist_ok=True)
    
    if "CUDA_VISIBLE_DEVICES" not in os.environ:
        os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
        os.environ["CUDA_VISIBLE_DEVICES"]="0"
    num_gpus = len(os.environ['CUDA_VISIBLE_DEVICES'].split(','))
    mp.spawn(train, args=(num_gpus, opt), nprocs=num_gpus, join=True)

from pi-gan.

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.