Code Monkey home page Code Monkey logo

Comments (4)

erickulcyk avatar erickulcyk commented on August 12, 2024

where stylegan2_pytorch
C:\ProgramData\Anaconda3\Scripts\stylegan2_pytorch

Go into powershell, run & conda C:\ProgramData\Anaconda3\Scripts\stylegan2_pytorch

from stylegan2-pytorch.

pieterdd avatar pieterdd commented on August 12, 2024

I don't have a C:\ProgramData\Anaconda3 directory. Possible reasons:

  • I installed for my own user, not system-wide (seems okay, then the file is just in a different place)
  • I installed Miniconda instead of Anaconda (seems okay, Anaconda just ships with a lot more packages)

I also tried this:

>conda C:\Users\Username\miniconda3\Scripts\stylegan2_pytorch
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: argument command: invalid choice: 'C:\\Users\\Username\\miniconda3\\Scripts\\stylegan2_pytorch' (choose from 'clean', 'config', 'create', 'help', 'info', 'init', 'install', 'list', 'package', 'remove', 'uninstall', 'run', 'search', 'update', 'upgrade')

>conda run "C:\Users\Username\miniconda3\Scripts\stylegan2_pytorch"
ERROR conda.cli.main_run:execute(32): Subprocess for 'conda run ['C:\\Users\\Username\\miniconda3\\Scripts\\stylegan2_pytorch']' command failed.  (See above for error)
'C:\Users\Username\miniconda3\Scripts\stylegan2_pytorch' is not recognized as an internal or external command,
operable program or batch file.

>conda run stylegan2_pytorch
ERROR conda.cli.main_run:execute(32): Subprocess for 'conda run ['stylegan2_pytorch']' command failed.  (See above for error)
'stylegan2_pytorch' is not recognized as an internal or external command,
operable program or batch file.

The file in question:

>dir stylegan2_pytorch
 Volume in drive C has no label.
 Volume Serial Number is 5076-5E18

 Directory of C:\Users\Username\miniconda3\Scripts

19/04/2020  16:17             1.809 stylegan2_pytorch
               1 File(s)          1.809 bytes
               0 Dir(s)  97.225.555.968 bytes free

from stylegan2-pytorch.

erickulcyk avatar erickulcyk commented on August 12, 2024

Sorry my bad, I forgot what I used to run it! Try without the -m:
python C:\ProgramData\Anaconda3\Scripts\stylegan2_pytorch

This gives me the error: ValueError: num_samples should be a positive integer value, but got num_samples=0

But it gets closer. You just need the arguments listed in the readme.

from stylegan2-pytorch.

pieterdd avatar pieterdd commented on August 12, 2024

Of course... that worked, thanks!

from stylegan2-pytorch.

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.